Implement kubectl annotation update command. Refactor kubectl annotate to decouple command framework from business logic.
This commit is contained in:
@@ -735,6 +735,32 @@ _kubectl_label()
|
||||
must_have_one_noun=()
|
||||
}
|
||||
|
||||
_kubectl_annotate()
|
||||
{
|
||||
last_command="kubectl_annotate"
|
||||
commands=()
|
||||
|
||||
flags=()
|
||||
two_word_flags=()
|
||||
flags_with_completion=()
|
||||
flags_completion=()
|
||||
|
||||
flags+=("--all")
|
||||
flags+=("--help")
|
||||
flags+=("-h")
|
||||
flags+=("--no-headers")
|
||||
flags+=("--output=")
|
||||
two_word_flags+=("-o")
|
||||
flags+=("--output-version=")
|
||||
flags+=("--overwrite")
|
||||
flags+=("--resource-version=")
|
||||
flags+=("--template=")
|
||||
two_word_flags+=("-t")
|
||||
|
||||
must_have_one_flag=()
|
||||
must_have_one_noun=()
|
||||
}
|
||||
|
||||
_kubectl_config_view()
|
||||
{
|
||||
last_command="kubectl_config_view"
|
||||
@@ -978,6 +1004,7 @@ _kubectl()
|
||||
commands+=("stop")
|
||||
commands+=("expose")
|
||||
commands+=("label")
|
||||
commands+=("annotate")
|
||||
commands+=("config")
|
||||
commands+=("cluster-info")
|
||||
commands+=("api-versions")
|
||||
|
Reference in New Issue
Block a user