Skip to content

Commit dc87d52

Browse files
Liam Bennettroboquat
Liam Bennett
authored andcommitted
Fix cert exec commands to correctly return debug
1 parent 54914fb commit dc87d52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.werft/util/certs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function createCertificateResource(
109109
&& kubectl --kubeconfig ${CORE_DEV_KUBECONFIG_PATH} apply -f cert.yaml`;
110110

111111
werft.log(shellOpts.slice, "Creating certificate Custom Resource");
112-
const rc = exec(cmd, { slice: shellOpts.slice }).code;
112+
const rc = exec(cmd, { slice: shellOpts.slice, dontCheckRc: true }).code;
113113

114114
if (rc != 0) {
115115
werft.fail(shellOpts.slice, "Failed to create the certificate Custom Resource");
@@ -134,7 +134,7 @@ function copyCachedSecret(werft: Werft, params: InstallCertificateParams, slice:
134134
| sed 's/${params.certName}/${params.certSecretName}/g' \
135135
| kubectl --kubeconfig ${params.destinationKubeconfig} apply --namespace=${params.destinationNamespace} -f -`;
136136

137-
const rc = exec(cmd, { slice: slice }).code;
137+
const rc = exec(cmd, { slice: slice, dontCheckRc: true }).code;
138138

139139
if (rc != 0) {
140140
werft.fail(

0 commit comments

Comments
 (0)