From ec09439130a208d2f8e0e42d1e926ef1f2c411b9 Mon Sep 17 00:00:00 2001 From: Tom Gehrke Date: Tue, 24 Sep 2024 08:13:45 +0200 Subject: [PATCH] initialize client cache options --- cmd/gardener-extension-shoot-kubecost/app/app.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/gardener-extension-shoot-kubecost/app/app.go b/cmd/gardener-extension-shoot-kubecost/app/app.go index 2fdbf857..fbf94566 100644 --- a/cmd/gardener-extension-shoot-kubecost/app/app.go +++ b/cmd/gardener-extension-shoot-kubecost/app/app.go @@ -58,6 +58,7 @@ func (o *Options) run(ctx context.Context) error { // do not enable a metrics server for the quick start mgrOpts.Metrics.BindAddress = "0" + mgrOpts.Client.Cache = &client.CacheOptions{} mgrOpts.Client.Cache.DisableFor = []client.Object{ &corev1.Secret{}, // applied for ManagedResources }