mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
If CSR is deleted, exit immediately
No point in waiting
This commit is contained in:
parent
710dfb3427
commit
de3d7d1881
@ -124,6 +124,8 @@ func requestCertificate(client certificatesclient.CertificateSigningRequestInter
|
|||||||
func(event watch.Event) (bool, error) {
|
func(event watch.Event) (bool, error) {
|
||||||
switch event.Type {
|
switch event.Type {
|
||||||
case watch.Modified, watch.Added:
|
case watch.Modified, watch.Added:
|
||||||
|
case watch.Deleted:
|
||||||
|
return false, fmt.Errorf("csr %q was deleted", csr.Name)
|
||||||
default:
|
default:
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user