INNER CODE UNIT · Go
initFlags
aws/eks-anywhere · manager/main.go:89
func initFlags(fs *pflag.FlagSet, config *config) {
logsv1.AddFlags(config.logging, fs)
fs.StringVar(&config.probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
fs.BoolVar(&config.enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
fs.StringSliceVar(&config.gates, "feature-gates", []string{}, "A set of key=value pairs that describe feature gates for alpha/experimental features. ")
capiflags.AddManagerOptions(fs, &config.managerOptions)
}
// +kubebuilder:rbac:groups=authentication.k8s.io,resources=tokenreviews,verbs=create
// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
func main() {
config := newConfig()
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
initFlags(pflag.CommandLine, config)
pflag.Parse()