INNER CODE UNIT · Go

main

kubernetes/kubeadm · kinder/ci/tools/update-workflows/cmd/main.go:49

func main() {
	// prepare flags
	settings := &pkg.Settings{}
	ver := versionValue{&versionutil.Version{}}
	flag.Var(&ver, "kubernetes-version", "Kubernetes version (e.g. v1.21.0)")
	flag.StringVar(&settings.PathConfig, "config", "", "config file")
	flag.StringVar(&settings.PathTestInfra, "path-test-infra", "", "path to the directory with test-infra kubeadm jobs")
	flag.StringVar(&settings.PathWorkflows, "path-workflows", "", "path to the directory with kinder workflows")
	flag.StringVar(&settings.ImageTestInfra, "image-test-infra", "", "image tag to use for test-infra jobs")
	flag.IntVar(&settings.SkewSize, "skew-size", 3, "number of prior Kubernetes minor version to be tested starting from --kubernetes-version (included)")
	flag.Parse()

	// check for flags with empty values
	flag.VisitAll(func(f *flag.Flag) {
		if len(f.Value.String()) != 0 {
			return
		}
		flag.PrintDefaults()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…