Skip to content

Commit

Permalink
initialize client cache options
Browse files Browse the repository at this point in the history
  • Loading branch information
phyrog committed Sep 24, 2024
1 parent a4ccb5f commit ec09439
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/gardener-extension-shoot-kubecost/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ec09439

Please sign in to comment.