INNER CODE UNIT · Go

main

operator-framework/operator-lifecycle-manager · cmd/olm/main.go:88

func main() {
	// Get exit signal context
	ctx, cancel := context.WithCancel(signals.Context())
	defer cancel()

	klogFlags := flag.NewFlagSet("klog", flag.ExitOnError)
	klog.InitFlags(klogFlags)

	// Opt into the new klog behavior where -stderrthreshold is honored even
	// when -logtostderr=true (see kubernetes/klog#212, kubernetes/klog#432).
	klogFlags.Set("legacy_stderr_threshold_behavior", "false") //nolint:errcheck
	klogFlags.Set("stderrthreshold", "INFO")                   //nolint:errcheck

	pflag.CommandLine.AddGoFlagSet(klogFlags)
	pflag.Parse()

	// Parse the command-line flags.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…