INNER CODE UNIT · Go

main

senthilrch/kube-fledged · cmd/webhook-server/main.go:39

func main() {
	flag.Parse()
	if initServer {
		/*
			Call function to perform init tasks:
			- create CA cert and key
			- create server cert and key and copy to /etc/webhook/certs
			- patch validatingwebhookconfiguration with CA bundle
		*/
		if err := app.InitWebhookServer(); err != nil {
			panic(err)
		}
		return
	}
	if err := app.StartWebhookServer(certFile, keyFile, port); err != nil {
		panic(err)
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…