Skip to content

Commit aaca71d

Browse files
author
Andrew Farries
committed
Append slice
1 parent 05bd2bc commit aaca71d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.werft/jobs/build/installer/installer.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,15 @@ EOF`);
173173
}
174174

175175
private configureStripeApiKeys(slice: string) {
176-
exec(`echo copying stripe-api-keys secret to preview environment...`);
176+
exec(`echo copying stripe-api-keys secret to preview environment...`, { slice });
177177
exec(
178178
`kubectl --kubeconfig ${CORE_DEV_KUBECONFIG_PATH} -n werft get secret stripe-api-keys -o yaml > stripe-api-keys.secret.yaml`,
179+
{ slice },
179180
);
180-
exec(`yq w -i stripe-api-keys.secret.yaml metadata.namespace "default"`);
181-
exec(`kubectl --kubeconfig "${this.options.kubeconfigPath}" apply -f stripe-api-keys.secret.yaml`);
182-
exec(`rm -f stripe-api-keys.secret.yaml`);
183-
exec(`echo copied stripe-api-keys secret to preview environment...`);
181+
exec(`yq w -i stripe-api-keys.secret.yaml metadata.namespace "default"`, { slice });
182+
exec(`kubectl --kubeconfig "${this.options.kubeconfigPath}" apply -f stripe-api-keys.secret.yaml`, { slice });
183+
exec(`rm -f stripe-api-keys.secret.yaml`, { slice });
184+
exec(`echo copied stripe-api-keys secret to preview environment...`, { slice });
184185
}
185186

186187
// auth-provider-secret.yml is a file generated by this job by reading a secret from core-dev cluster

0 commit comments

Comments
 (0)