Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_EDITOR string = "vi" ENV_EDITOR string = "EDITOR" ENV_KUBE_EDITOR string = "KUBE_EDITOR" TMP_FILE_PATTERN string = "ephemeral-containers-*.yaml" )
Variables ¶
This section is empty.
Functions ¶
func EditResource ¶
Edit a k8s resource and return the updated one
func GetEditorCmd ¶
Get editor executable from sources if not set on cli flags Precedence: * --editor flag * KUBE_EDITOR env var * EDITOR env var * Default to vi (vim)
func GetValueFromSources ¶
Get value from multiple sources until a non-empty value is returned
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.