INNER CODE UNIT · Go
addCommandFlags
backube/volsync · cmd/main.go:125
func addCommandFlags(probeAddr *string, metricsAddr *string, enableLeaderElection *bool, secureMetrics *bool,
metricsRequireRBAC *bool, metricsCertPath *string, metricsCertName *string, metricsCertKey *string,
enableHTTP2 *bool) {
flag.StringVar(metricsAddr, "metrics-bind-address", ":0", "The address the metric endpoint binds to."+
"Use :8443 for HTTPS or :8080 for HTTP, or leave as 0 to disable the metrics service.")
flag.BoolVar(secureMetrics, "metrics-secure", true,
"If set, the metrics endpoint is served securely via HTTPS. Use --metrics-secure=false to use HTTP instead.")
flag.BoolVar(metricsRequireRBAC, "metrics-require-rbac", true,
"enables protection of the metrics endpoint with RBAC-based authn/authz. see "+
"https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.18.4/pkg/metrics/filters#WithAuthenticationAndAuthorization "+
" for more info.")
flag.StringVar(probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
flag.BoolVar(enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
flag.StringVar(&utils.SCCName, "scc-name", utils.DefaultSCCName,
"The name of the volsync security context constraint")
flag.StringVar(&utils.MoverImagePullSecrets, "mover-image-pull-secrets", "",