Add the kubectl apply command.

This commit is contained in:
jackgr
2015-09-10 14:32:57 -07:00
parent ddda379b1b
commit 703a3e19aa
13 changed files with 977 additions and 1 deletions

View File

@@ -504,6 +504,33 @@ _kubectl_edit()
must_have_one_noun=()
}
_kubectl_apply()
{
last_command="kubectl_apply"
commands=()
flags=()
two_word_flags=()
flags_with_completion=()
flags_completion=()
flags+=("--filename=")
flags_with_completion+=("--filename")
flags_completion+=("__handle_filename_extension_flag json|stdin|yaml|yml")
two_word_flags+=("-f")
flags_with_completion+=("-f")
flags_completion+=("__handle_filename_extension_flag json|stdin|yaml|yml")
flags+=("--output=")
two_word_flags+=("-o")
flags+=("--schema-cache-dir=")
flags+=("--validate")
must_have_one_flag=()
must_have_one_flag+=("--filename=")
must_have_one_flag+=("-f")
must_have_one_noun=()
}
_kubectl_namespace()
{
last_command="kubectl_namespace"
@@ -1136,6 +1163,7 @@ _kubectl()
commands+=("patch")
commands+=("delete")
commands+=("edit")
commands+=("apply")
commands+=("namespace")
commands+=("logs")
commands+=("rolling-update")