config3alphato3

package
v1.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

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

func NewCmd

func NewCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL