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
Copy file name to clipboardExpand all lines: cmd/fluent-manager/main.go
+18-10Lines changed: 18 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -78,20 +78,27 @@ func main() {
78
78
vardisabledControllersstring
79
79
vartlsOpts []func(*tls.Config)
80
80
81
-
flag.StringVar(&watchNamespaces, "watch-namespaces", "", "Optional comma separated list of namespaces to watch for resources in. Defaults to cluster scope.")
82
-
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metrics endpoint binds to. "+
83
-
"Use :8443 for HTTPS or :8080 for HTTP, or leave as 0 to disable the metrics service.")
"Enable leader election for controller manager. "+
86
87
"Enabling this will ensure there is only one active controller manager.")
87
-
flag.BoolVar(&secureMetrics, "metrics-secure", true, "If set, the metrics endpoint is served securely via HTTPS. Use --metrics-secure=false to use HTTP instead.")
88
-
flag.StringVar(&webhookCertPath, "webhook-cert-path", "", "The directory that contains the webhook certificate.")
89
-
flag.StringVar(&webhookCertName, "webhook-cert-name", "tls.crt", "The name of the webhook certificate file.")
"Optional argument that accepts two values: fluent-bit and fluentd. "+
@@ -240,7 +247,8 @@ func main() {
240
247
casefluentdName:
241
248
fluentdEnabled=false
242
249
default:
243
-
setupLog.Error(errors.New("incorrect value for `-disable-component-controllers` and it will not be proceeded (possible values are: fluent-bit, fluentd)"), "")
250
+
err:=errors.New("incorrect value for disable-component-controllers flag")
251
+
setupLog.Error(err, "it will not be proceeded (possible values are: fluent-bit, fluentd)")
0 commit comments