@hiiretail/gcp-infra-generators 1.7.0 → 1.7.1

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.
@@ -11522,7 +11522,7 @@
11522
11522
  },
11523
11523
  "packages/generators": {
11524
11524
  "name": "@hiiretail/gcp-infra-generators",
11525
- "version": "1.7.0",
11525
+ "version": "1.7.1",
11526
11526
  "license": "MIT",
11527
11527
  "dependencies": {
11528
11528
  "@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.1",
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.1",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "scripts": {
6
6
  "build": "node esbuild.js && npm run build:deps",