INNER CODE UNIT · Go

main

kubeflow/trainer · cmd/trainer-controller-manager/main.go:71

func main() {
	var configFile string
	var featureGates string

	flag.StringVar(&configFile, "config", "",
		"The controller will load its initial configuration from this file. "+
			"Omit this flag to use the default configuration values. "+
			"Command-line flags override configuration from this file.")
	flag.StringVar(&featureGates, "feature-gates", "",
		"A comma-separated list of key=value pairs that describe feature gates. "+
			"Command-line feature gates override those specified in the config file.")

	zapOpts := zap.Options{
		TimeEncoder: zapcore.RFC3339NanoTimeEncoder,
		ZapOpts:     []zaplog.Option{zaplog.AddCaller()},
	}
	zapOpts.BindFlags(flag.CommandLine)
	flag.Parse()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…