If CSR is deleted, exit immediately

No point in waiting
This commit is contained in:
Clayton Coleman 2017-09-30 17:24:57 -04:00
parent 710dfb3427
commit de3d7d1881
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3

View File

@ -124,6 +124,8 @@ func requestCertificate(client certificatesclient.CertificateSigningRequestInter
func(event watch.Event) (bool, error) {
switch event.Type {
case watch.Modified, watch.Added:
case watch.Deleted:
return false, fmt.Errorf("csr %q was deleted", csr.Name)
default:
return false, nil
}