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
* add config files
* resolve import cycle
* resolve import cycle
* fix style
* fix tests
* add more tests and support helm
* fix empty test case
* fix ci
* fix test
* update dep
* more logs
* always remember to re-init
* add resourceAnnotations
"the name of the configmap that leader election will use for holding the leader lock.")
@@ -58,10 +61,20 @@ func main() {
58
61
"Enabling this will ensure there is only one active controller manager.")
59
62
flag.StringVar(&certDir, "cert-dir", "",
60
63
"CertDir is the directory that contains the server key and certificate.\n\tif not set, webhook server would look up the server key and certificate in\n\t{TempDir}/k8s-webhook-server/serving-certs. The server key and certificate\n\tmust be named tls.key and tls.crt, respectively.")
64
+
flag.StringVar(&configFile, "config-file", "",
65
+
"config file path for controller manager")
61
66
flag.Parse()
62
67
63
68
ctrl.SetLogger(zap.New(zap.UseDevMode(true)))
64
69
70
+
ifconfigFile!="" {
71
+
err:=spec.ParseControllerConfigs(configFile)
72
+
iferr!=nil {
73
+
setupLog.Error(err, "unable to parse the controller configs")
0 commit comments