@vaharoni/devops 1.3.3 → 1.3.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/dist/devops.js CHANGED
@@ -2096,8 +2096,13 @@ function copyRegistrySecretToNamespace(monorepoEnv) {
2096
2096
  metadata: { name, namespace: envToNamespace(monorepoEnv) },
2097
2097
  type
2098
2098
  };
2099
+ const redactedParts = {
2100
+ ...relevantParts,
2101
+ data: "**REDACTED**"
2102
+ };
2099
2103
  const copyCmd = `echo '${JSON.stringify(relevantParts)}' | kubectl apply -f -`;
2100
- new CommandExecutor(copyCmd, { quiet: true }).exec();
2104
+ const redactedCommand = `echo '${JSON.stringify(redactedParts)}' | kubectl apply -f -`;
2105
+ new CommandExecutor(copyCmd, { quiet: true, redactedCommand }).exec();
2101
2106
  }
2102
2107
  function patchServiceAccountImagePullSecret(monorepoEnv) {
2103
2108
  const secretName2 = getSecretName();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vaharoni/devops",
3
3
  "type": "module",
4
- "version": "1.3.3",
4
+ "version": "1.3.4",
5
5
  "description": "Devops utility",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -35,9 +35,15 @@ export function copyRegistrySecretToNamespace(monorepoEnv: string) {
35
35
  metadata: { name, namespace: envToNamespace(monorepoEnv) },
36
36
  type,
37
37
  };
38
+ const redactedParts = {
39
+ ...relevantParts,
40
+ data: "**REDACTED**",
41
+ };
38
42
  // prettier-ignore
39
43
  const copyCmd = `echo '${JSON.stringify(relevantParts)}' | kubectl apply -f -`;
40
- new CommandExecutor(copyCmd, { quiet: true }).exec();
44
+ // prettier-ignore
45
+ const redactedCommand = `echo '${JSON.stringify(redactedParts)}' | kubectl apply -f -`;
46
+ new CommandExecutor(copyCmd, { quiet: true, redactedCommand }).exec();
41
47
  }
42
48
 
43
49
  export function patchServiceAccountImagePullSecret(monorepoEnv: string) {