@catladder/cli 1.62.0 → 1.62.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.
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "node": ">=12.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@catladder/pipeline": "1.62.0",
27
+ "@catladder/pipeline": "1.62.1",
28
28
  "@kubernetes/client-node": "^0.16.2",
29
29
  "@tsconfig/node14": "^1.0.1",
30
30
  "@types/common-tags": "^1.8.0",
@@ -57,5 +57,5 @@
57
57
  "typescript": "^4.5.4",
58
58
  "vorpal": "^1.12.0"
59
59
  },
60
- "version": "1.62.0"
60
+ "version": "1.62.1"
61
61
  }
@@ -150,8 +150,13 @@ export const getEnvVars = async (
150
150
  env: string,
151
151
  componentName: string
152
152
  ) => {
153
- const envionment = await getEnvironment(env, componentName);
154
- // in the pipeline the secrets alreadyy exists and bash will expand them
155
- // but here we need to manually load them
156
- return resolveSecrets(vorpal, envionment.envVars);
153
+ try {
154
+ const envionment = await getEnvironment(env, componentName);
155
+ // in the pipeline the secrets alreadyy exists and bash will expand them
156
+ // but here we need to manually load them
157
+ return resolveSecrets(vorpal, envionment.envVars);
158
+ } catch (e) {
159
+ // env is disabled
160
+ return {};
161
+ }
157
162
  };