INNER CODE UNIT · Go

version

deckhouse/deckhouse · deckhouse-controller/cmd/deckhouse-controller/main.go:52

func version() string {
	return fmt.Sprintf("deckhouse %s (addon-operator %s, shell-operator %s, nelm %s, Golang %s)", DeckhouseVersion, AddonOperatorVersion, ShellOperatorVersion, NelmVersion, runtime.Version())
}

// main is almost a copy from addon-operator. We compile addon-operator to inline
// Go hooks and set some defaults. Also, helper commands are defined for Shell hooks.

// legacyBashCompletion is bound to the backward-compatibility flag
// `--completion-script-bash` (see rootCmd setup in main).
var legacyBashCompletion bool

func main() {
	app.SetShellOperatorVersion(ShellOperatorVersion)
	app.SetAddonOperatorVersion(AddonOperatorVersion)
	app.SetDeckhouseVersion(DeckhouseVersion)

	// deckhouse-controller is the single source of truth for environment-driven
	// configuration of addon-operator (and the shell-operator globals

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…