File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export async function issueCertificate(werft: Werft, params: IssueCertificatePar
40
40
werft . log ( shellOpts . slice , `Creating cert: Attempt ${ i } ` ) ;
41
41
createCertificateResource ( werft , shellOpts , params , subdomains ) ;
42
42
werft . log ( shellOpts . slice , `Checking for cert readiness: Attempt ${ i } ` ) ;
43
- if ( checkCertReadiness ( params . certName ) ) {
43
+ if ( isCertReady ( params . certName ) ) {
44
44
certReady = true ;
45
45
break ;
46
46
}
@@ -51,13 +51,13 @@ export async function issueCertificate(werft: Werft, params: IssueCertificatePar
51
51
return certReady
52
52
}
53
53
54
- function checkCertReadiness ( certName : string ) : boolean {
54
+ function isCertReady ( certName : string ) : boolean {
55
55
const timeout = "180s"
56
56
const rc = exec (
57
57
`kubectl --kubeconfig ${ CORE_DEV_KUBECONFIG_PATH } wait --for=condition=Ready --timeout=${ timeout } -n certs certificate ${ certName } ` ,
58
58
{ dontCheckRc : true } ,
59
59
) . code
60
- return rc ! = 0
60
+ return rc = = 0
61
61
}
62
62
63
63
function retrieveFailedCertDebug ( certName : string , slice : string ) {
You can’t perform that action at this time.
0 commit comments