From e0c2aa05b4733ef65a1bc2e000cc9a5c4371c7a9 Mon Sep 17 00:00:00 2001 From: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Date: Mon, 27 Nov 2023 17:09:34 -0500 Subject: [PATCH] chore: more logging for CRD updates Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --- pkg/cache/cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cache/cluster.go b/pkg/cache/cluster.go index 02ca18911..31e16e711 100644 --- a/pkg/cache/cluster.go +++ b/pkg/cache/cluster.go @@ -690,6 +690,7 @@ func (c *clusterCache) watchEvents(ctx context.Context, api kube.APIResourceInfo c.deleteAPIResource(resources[i]) } } else { + c.log.Info("Updating Kubernetes APIs, watches, and Open API schemas due to CRD event", "eventType", event.Type, "groupKind", crd.GroupVersionKind().GroupKind().String()) // add new CRD's groupkind to c.apigroups if event.Type == watch.Added { for i := range resources {