INNER CODE UNIT · Go
newConfig
aws/eks-anywhere · manager/main.go:79
func newConfig() *config {
c := &config{
logging: logsv1.NewLoggingConfiguration(),
}
c.logging.Format = logsv1.JSONLogFormat
c.logging.Verbosity = logsv1.VerbosityLevel(0)
return c
}
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. ")