INNER CODE UNIT · Go

init

gravitational/workshop · crd/controller/main.go:35

func init() {
	flag.StringVar(&kubeconfig, "kubeconfig", "",
		"Path to a kubeconfig. Only required if out-of-cluster.")
	flag.StringVar(&masterURL, "master", "",
		"The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
	flag.BoolVar(&debug, "debug", false,
		"Enables debug logging.")
}

var (
	kubeconfig string
	masterURL  string
	debug      bool
)

func main() {
	flag.Parse()
	logrus.StandardLogger().SetHooks(make(logrus.LevelHooks))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…