INNER CODE UNIT · Go

main

kubermatic/kubermatic · cmd/http-prober/main.go:64

func main() {
	var (
		endpoint      string
		insecure      bool
		retries       int
		retryWait     int
		timeout       int
		crdsToWaitFor multiValFlag
		commandRaw    string
	)
	flag.StringVar(&endpoint, "endpoint", "", "The endpoint which should be waited for")
	flag.BoolVar(&insecure, "insecure", false, "Disable certificate validation")
	flag.IntVar(&retries, "retries", 10, "Number of retries")
	flag.IntVar(&retryWait, "retry-wait", 1, "Wait interval in seconds between retries")
	flag.IntVar(&timeout, "timeout", 30, "Timeout in seconds")
	flag.Var(&crdsToWaitFor, "crd-to-wait-for", "Wait for these crds to exist. Must contain kind and apiVersion comma separated, e.G `machines,cluster.k8s.io/v1alpha1`. Can be passed multiple times. Requires path to valid kubeconfig to work which can be passed via `PROBER_KUBECONFIG` or `KUBECONFIG` env var. If env var are missing then it will try to load in-cluster config.")
	flag.StringVar(&commandRaw, "command", "", "If passed, the http prober will exec this command. Must be json encoded")
	flag.Parse()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…