add "kubectl patch". It will replace "kubectl udpate --patch" in the future

This commit is contained in:
Chao Xu
2015-06-25 15:56:30 -07:00
parent ac917aa36a
commit 7f89a29aad
11 changed files with 415 additions and 2 deletions

View File

@@ -350,6 +350,27 @@ _kubectl_replace()
must_have_one_noun=()
}
_kubectl_patch()
{
last_command="kubectl_patch"
commands=()
flags=()
two_word_flags=()
flags_with_completion=()
flags_completion=()
flags+=("--help")
flags+=("-h")
flags+=("--patch=")
two_word_flags+=("-p")
must_have_one_flag=()
must_have_one_flag+=("--patch=")
must_have_one_flag+=("-p")
must_have_one_noun=()
}
_kubectl_delete()
{
last_command="kubectl_delete"
@@ -905,6 +926,7 @@ _kubectl()
commands+=("describe")
commands+=("create")
commands+=("replace")
commands+=("patch")
commands+=("delete")
commands+=("namespace")
commands+=("logs")