INNER CODE UNIT · Go
main
kube-green/kube-green · cmd/main.go:53
func main() {
var webhookHost string
var webhookPort int
var metricsAddr string
var webhookCertPath, webhookCertName, webhookCertKey string
var metricsCertPath, metricsCertName, metricsCertKey string
var enableLeaderElection bool
var probeAddr string
var sleepDelta int64
var secureMetrics bool
var enableHTTP2 bool
var maxConcurrentReconciles int
var tlsOpts []func(*tls.Config)
flag.StringVar(&webhookHost, "webhook-host", "", "The host where the server binds to. Default means all interfaces.")
flag.IntVar(&webhookPort, "webhook-server-port", 9443, "The port where the server will listen.")
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. "+
"Use :8443 for HTTPS or :8080 for HTTP, or leave as 0 to disable the metrics service.")
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")