Files
kustomize/kyaml/commandutil/commandutil.go
Phillip Wittrock 6484259632 Disable alpha kustomize commands by default.
- enable alpha commands with env KUSTOMIZE_SHOW_ALPHA_COMMANDS=true
2019-12-11 18:42:46 -08:00

15 lines
419 B
Go

package commandutil
import (
"os"
)
// EnabkeAlphaCommmandsEnvName is the environment variable used to enable Alpha kustomize commands.
//If set to "true" alpha commands will be enabled.
const EnableAlphaCommmandsEnvName = "KUSTOMIZE_ENABLE_ALPHA_COMMANDS"
// GetAlphaEnabled returns true if alpha commands should be enabled.
func GetAlphaEnabled() bool {
return os.Getenv(EnableAlphaCommmandsEnvName) == "true"
}