From 42f5d3bb1fddbe58605fdc792364f28086182bbd Mon Sep 17 00:00:00 2001 From: Liam Bennett Date: Mon, 4 Jul 2022 14:33:15 +0000 Subject: [PATCH] remove certificate kubectl wait assert --- .werft/util/certs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.werft/util/certs.ts b/.werft/util/certs.ts index d49b669d6f5f5c..e4240ded7fe7d1 100644 --- a/.werft/util/certs.ts +++ b/.werft/util/certs.ts @@ -77,7 +77,7 @@ export async function installCertificate(werft, params: InstallCertificateParams function waitForCertificateReadiness(werft: Werft, certName: string, slice: string) { const timeout = "600s" werft.log(slice, "Waiting for certificate readiness") - const rc = exec(`kubectl --kubeconfig ${CORE_DEV_KUBECONFIG_PATH} wait --for=condition=Ready --timeout=${timeout} -n certs certificate ${certName}`).code + const rc = exec(`kubectl --kubeconfig ${CORE_DEV_KUBECONFIG_PATH} wait --for=condition=Ready --timeout=${timeout} -n certs certificate ${certName}`, {dontCheckRc: true}).code if (rc != 0) { werft.log(slice, "The certificate never became Ready. We are deleting the certificate so that the next job can create a new one")