INNER CODE UNIT · Go

init

Altinity/clickhouse-operator · cmd/operator/app/main.go:60

func init() {
	flag.BoolVar(&versionRequest, "version", false, "Display clickhouse-operator version and exit")
	flag.BoolVar(&fipsInfoRequest, "fips-info", false, "Display FIPS build/runtime info and exit (no Go toolchain required).")
	flag.BoolVar(&debugRequest, "debug", false, "Debug run")
	flag.StringVar(&chopConfigFile, "config", "", "Path to clickhouse-operator config file.")
	flag.StringVar(&masterURL, "master", "", "The address of custom Kubernetes API server. Makes sense if runs outside of the cluster and not being specified in kube config file only.")
}

// Run is an entry point of the application
func Run() {
	// ACVP responder trampoline: if argv[0] is *-acvp and the binary was
	// built with -tags acvp_wrapper, hand control to the ACVP stdin/stdout
	// responder before any operator-side initialization (flag.Parse, k8s
	// client construction, signal handlers, goroutine launches). In default
	// builds this is a no-op stub. See acvp_dispatch_{on,off}.go.
	if TryACVPDispatch() {
		return // unreachable: TryACVPDispatch calls os.Exit on dispatch
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…