@catladder/cli 1.41.3 → 1.41.4

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.41.3",
27
+ "@catladder/pipeline": "1.41.4",
28
28
  "@kubernetes/client-node": "^0.16.2",
29
29
  "@tsconfig/node14": "^1.0.1",
30
30
  "@types/common-tags": "^1.8.0",
@@ -58,5 +58,5 @@
58
58
  "update-notifier": "^5",
59
59
  "vorpal": "^1.12.0"
60
60
  },
61
- "version": "1.41.3"
61
+ "version": "1.41.4"
62
62
  }
@@ -23,7 +23,11 @@ export const migrateSecrets = async (
23
23
  const secrets = load(yamlstring);
24
24
 
25
25
  Object.keys(newConfig.components).forEach(async (componentName) => {
26
- const environment = getEnvironment(newConfig, componentName, newEnv);
26
+ const environment = await getEnvironment(
27
+ newConfig,
28
+ componentName,
29
+ newEnv
30
+ );
27
31
  await upsertAllVariables(
28
32
  vorpal,
29
33
  pick(secrets, environment.secretEnvVarKeys),
@@ -1,11 +1,10 @@
1
- import type {
2
- Config} from "@catladder/pipeline";
1
+ import type { Config } from "@catladder/pipeline";
3
2
  import {
4
3
  readConfigSync,
5
4
  getAllEnvs,
6
5
  getEnvironment as _getEnvironment,
7
6
  createContext,
8
- getSecretVarName
7
+ getSecretVarName,
9
8
  } from "@catladder/pipeline";
10
9
 
11
10
  import type { CommandInstance } from "vorpal";
@@ -67,7 +66,7 @@ export const getPipelineContextByChoice = async (
67
66
  componentName: string
68
67
  ) => {
69
68
  const config = await getProjectConfig();
70
- return createContext(config, componentName, env);
69
+ return await createContext(config, componentName, env);
71
70
  };
72
71
  export const getAllComponentsWithAllEnvsFlat = async (): Promise<
73
72
  Array<{ env: string; componentName: string }>