INNER CODE UNIT · Go

main

we-dcode/kubetunnel · cmd/operator/main.go:68

func main() {
	var (
		metricsAddr          string
		leaderElectionID     string
		watchesPath          string
		probeAddr            string
		enableLeaderElection bool
	)

	setupLog.Info("Starting Gin server..")
	go startGin()

	// #### Manager pod configuration

	flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
	flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
	flag.StringVar(&watchesPath, "watches-file", "watches.yaml", "path to watches file")
	flag.StringVar(&leaderElectionID, "leader-election-id", "5dbd2493.dcode.tech", "provide leader election")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…