Skip to content

Commit

Permalink
Dont ignore empty
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBollag committed Nov 9, 2023
1 parent 0bf0611 commit 01cd7bf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/operator/controllers/otterizeclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 01cd7bf

Please sign in to comment.