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
"Enable leader election for controller manager. "+
74
75
"Enabling this will ensure there is only one active controller manager")
75
-
flag.StringVar(&namespace, "namespace", "default", "the namespace this controller is running")
76
+
flag.StringVar(&namespace, "namespace", "", "the namespace this controller is running")
76
77
flag.DurationVar(&reconcileInterval, "reconcile-interval", 10*time.Minute, "duration after which a resource is getting reconciled at minimum")
77
78
flag.DurationVar(&firewallHealthTimeout, "firewall-health-timeout", 20*time.Minute, "duration after a created firewall not getting ready is considered dead")
78
79
flag.DurationVar(&createTimeout, "create-timeout", 10*time.Minute, "duration after which a firewall in the creation phase will be recreated")
@@ -88,10 +89,15 @@ func main() {
88
89
flag.StringVar(&shootKubeconfigSecret, "shoot-kubeconfig-secret-name", "", "the secret name of the generic kubeconfig for shoot access")
89
90
flag.StringVar(&shootTokenSecret, "shoot-token-secret-name", "", "the secret name of the token for shoot access")
90
91
flag.StringVar(&sshKeySecret, "ssh-key-secret-name", "", "the secret name of the ssh key for machine access")
92
+
flag.StringVar(&sshKeySecretNamespace, "ssh-key-secret-namespace", "", "the secret name of the ssh key for machine access")
91
93
flag.StringVar(&shootTokenPath, "shoot-token-path", "", "the path where to store the token file for shoot access")
92
94
93
95
flag.Parse()
94
96
97
+
ifsshKeySecretNamespace=="" {
98
+
sshKeySecretNamespace=namespace
99
+
}
100
+
95
101
slogHandler, err:=controllers.NewLogger(logLevel)
96
102
iferr!=nil {
97
103
ctrl.Log.WithName("setup").Error(err, "unable to parse log level")
@@ -110,7 +116,7 @@ func main() {
110
116
log.Fatalf("unable to create metal client %v", err)
0 commit comments