From 01cd7bf08a60fad6ba6ffbe5a323817adf468706 Mon Sep 17 00:00:00 2001 From: Netanel Bollag Date: Fri, 10 Nov 2023 00:00:28 +0100 Subject: [PATCH] Dont ignore empty --- src/operator/controllers/otterizeclient/client.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/operator/controllers/otterizeclient/client.go b/src/operator/controllers/otterizeclient/client.go index b3f5530..8120603 100644 --- a/src/operator/controllers/otterizeclient/client.go +++ b/src/operator/controllers/otterizeclient/client.go @@ -60,11 +60,6 @@ func (c *CloudClient) CleanupOrphanK8SPodEntries(ctx context.Context, _ string, namespacedPodOwners = append(namespacedPodOwners, otterizegraphql.NamespacedPodOwner{Namespace: namespace, Name: podOwner}) } } - - if len(namespacedPodOwners) == 0 { - return nil - } - res, err := otterizegraphql.ReportActiveCertificateRequesters(ctx, c.graphqlClient, namespacedPodOwners) if err != nil { return fmt.Errorf("failed removing orphan entries: %w", err)