mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Disable alpha kustomize commands by default.
- enable alpha commands with env KUSTOMIZE_SHOW_ALPHA_COMMANDS=true
This commit is contained in:
14
kyaml/commandutil/commandutil.go
Normal file
14
kyaml/commandutil/commandutil.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user