You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flags.IntVar(&cfg.webhookPort, "webhook-server-port", 9443, "Webhook server port")
140
137
flags.StringVar(&cfg.pullCasDir, "pull-cas-dir", "", "The directory of TLS certificate authorities to use for verifying HTTPS connections to image registries.")
flags.StringVar(&cfg.cachePath, "cache-path", "/var/cache", "The local directory path used for filesystem based caching")
188
185
flags.StringVar(&cfg.systemNamespace, "system-namespace", "", "Configures the namespace that gets used to deploy system resources.")
189
186
flags.StringVar(&cfg.globalPullSecret, "global-pull-secret", "", "The <namespace>/<name> of the global pull secret that is going to be used to pull bundle images.")
190
-
flags.StringVar(&cfg.kubeconfig, "kubeconfig", "", "Path to kubeconfig file for API server access. Uses in-cluster config if empty.")
191
187
192
188
//adds version sub command
193
189
operatorControllerCmd.AddCommand(versionCommand)
@@ -329,18 +325,7 @@ func run() error {
329
325
"Metrics will not be served since the TLS certificate and key file are not provided.")
330
326
}
331
327
332
-
// Load REST config with kubeconfig support for non-default kubeconfig
333
-
varrestConfig*rest.Config
334
-
ifcfg.kubeconfig!="" {
335
-
setupLog.Info("loading kubeconfig from file", "path", cfg.kubeconfig)
0 commit comments