From 2611a0d66ae39e9a0bdcefdbddd947b2ee2364d5 Mon Sep 17 00:00:00 2001 From: Ankit R Gadiya <git@argp.in> Date: Thu, 3 Oct 2019 22:42:03 +0530 Subject: [PATCH] fix: the assignment for new secret assertion was fixed to use `new` The assertion/assignment from Object to Secret was incorrectly using `original` object instead of `new` object. It was fixed. --- pkg/secret/secret.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/secret/secret.go b/pkg/secret/secret.go index 65874b4..5414f5b 100644 --- a/pkg/secret/secret.go +++ b/pkg/secret/secret.go @@ -81,7 +81,7 @@ func MaybeUpdate(original interfaces.Object, new interfaces.Object) (bool, error return false, errors.New("failed to assert the original object") } - ns, ok := original.(*corev1.Secret) + ns, ok := new.(*corev1.Secret) if !ok { return false, errors.New("failed to assert the new object") } -- GitLab