Commit 9fc69f72 authored by Geoff Simmons's avatar Geoff Simmons

On Secret delete, don't check against the ResourceVersion.

On a Delete event, the ResourceVersion for the Secret is not the
same as previously stored when added or updated. pem.Have()
may have incorrectly concluded that the PEM file was not stored,
this fixes that error.
parent f9eaa9a2
......@@ -86,7 +86,7 @@ func (worker *NamespaceWorker) update(secret *api_v1.Secret) Status {
func (worker *NamespaceWorker) delete(secret *api_v1.Secret) Status {
if !worker.files.Have(secret.Namespace, secret.Name, string(secret.UID),
secret.ResourceVersion) {
"") {
return MakeNoop("pem file currently not stored")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment