Skip to content

Commit 8e5fb75

Browse files
committed
Move cluster.NewClientFunc to client.NewClientFunc. Adapt NewClientFunc signature.
kubernetes-sigs/controller-runtime#2150
1 parent 6c6f4ac commit 8e5fb75

File tree

1 file changed

+1
-2
lines changed
  • cmd/gardener-resource-manager/app

1 file changed

+1
-2
lines changed

cmd/gardener-resource-manager/app/app.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import (
3737
"k8s.io/component-base/version/verflag"
3838
"k8s.io/klog/v2"
3939
"k8s.io/utils/pointer"
40-
"sigs.k8s.io/controller-runtime/pkg/cache"
4140
"sigs.k8s.io/controller-runtime/pkg/client"
4241
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
4342
"sigs.k8s.io/controller-runtime/pkg/cluster"
@@ -216,7 +215,7 @@ func run(ctx context.Context, log logr.Logger, cfg *config.ResourceManagerConfig
216215
opts.SyncPeriod = &cfg.TargetClientConnection.CacheResyncPeriod.Duration
217216

218217
if *cfg.TargetClientConnection.DisableCachedClient {
219-
opts.NewClient = func(_ cache.Cache, config *rest.Config, opts client.Options, _ ...client.Object) (client.Client, error) {
218+
opts.NewClient = func(config *rest.Config, opts client.Options) (client.Client, error) {
220219
return client.New(config, opts)
221220
}
222221
}

0 commit comments

Comments
 (0)