INNER CODE UNIT · Go

main

evryfs/github-actions-runner-operator · main.go:53

func main() {
	var metricsAddr string
	var healthProbeAddr string
	var enableLeaderElection bool
	flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
	flag.StringVar(&healthProbeAddr, "health-probe-addr", ":8081", "The address the health probe endpoint binds to.")
	flag.BoolVar(&enableLeaderElection, "enable-leader-election", false,
		"Enable leader election for controller manager. "+
			"Enabling this will ensure there is only one active controller manager.")
	flag.Parse()

	ctrl.SetLogger(zap.New(zap.UseDevMode(true), zap.JSONEncoder(func(encoderconfig *zapcore.EncoderConfig) {
		encoderconfig.EncodeTime = zapcore.RFC3339TimeEncoder
	})))

	namespace := os.Getenv("WATCH_NAMESPACE")
	options := ctrl.Options{
		Scheme:                     scheme,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…