@hiiretail/gcp-infra-generators 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -314,7 +314,7 @@ module.exports = class extends BaseGenerator {
314
314
  const externalDirPath = path.join(
315
315
  process.cwd(),
316
316
  'infra',
317
- env,
317
+ 'prod',
318
318
  'pubsub',
319
319
  existingTopic,
320
320
  `${clanName}-${env}`,
@@ -2054,6 +2054,9 @@
2054
2054
  "x64"
2055
2055
  ],
2056
2056
  "dev": true,
2057
+ "libc": [
2058
+ "glibc"
2059
+ ],
2057
2060
  "license": "MIT",
2058
2061
  "optional": true,
2059
2062
  "os": [
@@ -2068,6 +2071,9 @@
2068
2071
  "x64"
2069
2072
  ],
2070
2073
  "dev": true,
2074
+ "libc": [
2075
+ "musl"
2076
+ ],
2071
2077
  "license": "MIT",
2072
2078
  "optional": true,
2073
2079
  "os": [
@@ -11522,7 +11528,7 @@
11522
11528
  },
11523
11529
  "packages/generators": {
11524
11530
  "name": "@hiiretail/gcp-infra-generators",
11525
- "version": "1.7.0",
11531
+ "version": "1.7.2",
11526
11532
  "license": "MIT",
11527
11533
  "dependencies": {
11528
11534
  "@google-cloud/storage": "^7.18.0",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-generators",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "scripts": {
6
6
  "build": "node esbuild.js && npm run build:deps",
@@ -97,8 +97,13 @@ module.exports = class extends BaseGenerator {
97
97
 
98
98
  buildSecrets() {
99
99
  const secrets = [];
100
- const resourceType =
100
+ let resourceType =
101
101
  this.instanceType === '' ? this.resource : this.instanceType;
102
+
103
+ // make secret management backwards compatible
104
+ if (this.instanceType === 'postgres-clan') {
105
+ resourceType = 'postgres';
106
+ }
102
107
  const padding = resourceType.length + this.outputLen + this.stateLen + 2;
103
108
  this.stateNames.secrets.forEach((secret) => {
104
109
  const secretsSet = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-generators",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "scripts": {
6
6
  "build": "node esbuild.js && npm run build:deps",