From de3d7d188165a039395de1599d48cc4f40e41566 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Sat, 30 Sep 2017 17:24:57 -0400 Subject: [PATCH] If CSR is deleted, exit immediately No point in waiting --- pkg/kubelet/util/csr/csr.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/kubelet/util/csr/csr.go b/pkg/kubelet/util/csr/csr.go index 5c2fb8549f7..7ccf581b31f 100644 --- a/pkg/kubelet/util/csr/csr.go +++ b/pkg/kubelet/util/csr/csr.go @@ -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 }