- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for HasTrueCondition (1.66 sec)
-
pkg/controller/certificates/signer/signer.go
} func (s *signer) handle(ctx context.Context, csr *capi.CertificateSigningRequest) error { // Ignore unapproved or failed requests if !certificates.IsCertificateRequestApproved(csr) || certificates.HasTrueCondition(csr, capi.CertificateFailed) { return nil } // Fast-path to avoid any additional processing if the CSRs signerName does not match if csr.Spec.SignerName != s.signerName { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 15 03:26:08 UTC 2023 - 10.3K bytes - Viewed (0) -
pkg/controller/certificates/signer/signer_test.go
csr := as[0].(testclient.UpdateAction).GetObject().(*capi.CertificateSigningRequest) if len(csr.Status.Certificate) != 0 { t.Errorf("expected no certificate to be issued") } if !certificates.HasTrueCondition(csr, capi.CertificateFailed) { t.Errorf("expected Failed condition") } }, }, { name: "should sign if signerName is kubernetes.io/kube-apiserver-client-kubelet",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 02 21:12:04 UTC 2022 - 15K bytes - Viewed (0)