From f63a3164ed4ffb8ab7b95af6cf4f1c4215a0166c Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Thu, 20 Jul 2023 09:53:09 +0200 Subject: [PATCH] chore: migrate due to controller runtime update Signed-off-by: Dominik Rosiek --- operator/handler/handler_test.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/operator/handler/handler_test.go b/operator/handler/handler_test.go index bd3cf726..14773870 100644 --- a/operator/handler/handler_test.go +++ b/operator/handler/handler_test.go @@ -71,11 +71,7 @@ var _ = Describe("handler", func() { Expect(err).ToNot(HaveOccurred()) }) - decoder, err := admission.NewDecoder(scheme.Scheme) - It("creates decoder without any errors", func() { - Expect(err).ToNot(HaveOccurred()) - - }) + decoder := admission.NewDecoder(scheme.Scheme) podExtender := PodExtender{ Client: k8sClient, @@ -154,11 +150,7 @@ var _ = Describe("handler", func() { Expect(err).ToNot(HaveOccurred()) }) - decoder, err := admission.NewDecoder(scheme.Scheme) - It("creates decoder without any errors", func() { - Expect(err).ToNot(HaveOccurred()) - - }) + decoder := admission.NewDecoder(scheme.Scheme) podExtender := PodExtender{ Client: k8sClient,