Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootPersistentPreRun = func(cmd *cobra.Command, args []string) { if cfgBytes, err := ioutil.ReadFile("PROJECT"); err == nil { if ver, err := getConfigVersion(cfgBytes); err == nil && ver == v3alpha { log.Warn("Config version 3-alpha has been stabilized as 3, and 3-alpha is no longer supported. " + "Run `operator-sdk alpha config-3alpha-to-3` to upgrade your PROJECT config file to version 3", ) } } }
RootPersistentPreRun prints a helpful message on any exit caused by kubebuilder's config unmarshal step finding "3-alpha", since the CLI will not recognize this version. Add this to the root command (`operator-sdk`).
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.