File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ package main
1919import (
2020 "flag"
2121 "os"
22+
23+ "sigs.k8s.io/controller-runtime/pkg/client"
2224 "sigs.k8s.io/controller-runtime/pkg/metrics/server"
2325 "sigs.k8s.io/controller-runtime/pkg/webhook"
2426
@@ -69,8 +71,13 @@ func main() {
6971 ctrl .SetLogger (zap .New (zap .UseFlagOptions (& opts )))
7072
7173 mgr , err := ctrl .NewManager (ctrl .GetConfigOrDie (), ctrl.Options {
72- Scheme : scheme ,
73- Metrics : server.Options {BindAddress : metricsAddr },
74+ Scheme : scheme ,
75+ Metrics : server.Options {BindAddress : metricsAddr },
76+ Client : client.Options {
77+ Cache : & client.CacheOptions {
78+ Unstructured : true ,
79+ },
80+ },
7481 WebhookServer : webhook .NewServer (webhook.Options {Port : 9443 }),
7582 HealthProbeBindAddress : probeAddr ,
7683 LeaderElection : enableLeaderElection ,
You can’t perform that action at this time.
0 commit comments