Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deployment Conditions and oc rollout status #9874

Merged
merged 5 commits into from
Oct 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions contrib/completions/bash/oc
Original file line number Diff line number Diff line change
Expand Up @@ -11648,6 +11648,61 @@ _oc_rollout_resume()
noun_aliases+=("deployments")
}

_oc_rollout_status()
{
last_command="oc_rollout_status"
commands=()

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--filename=")
flags_with_completion+=("--filename")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
two_word_flags+=("-f")
flags_with_completion+=("-f")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
local_nonpersistent_flags+=("--filename=")
flags+=("--recursive")
flags+=("-R")
local_nonpersistent_flags+=("--recursive")
flags+=("--as=")
flags+=("--certificate-authority=")
flags_with_completion+=("--certificate-authority")
flags_completion+=("_filedir")
flags+=("--client-certificate=")
flags_with_completion+=("--client-certificate")
flags_completion+=("_filedir")
flags+=("--client-key=")
flags_with_completion+=("--client-key")
flags_completion+=("_filedir")
flags+=("--cluster=")
flags+=("--config=")
flags_with_completion+=("--config")
flags_completion+=("_filedir")
flags+=("--context=")
flags+=("--insecure-skip-tls-verify")
flags+=("--log-flush-frequency=")
flags+=("--loglevel=")
flags+=("--logspec=")
flags+=("--match-server-version")
flags+=("--namespace=")
two_word_flags+=("-n")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
must_have_one_noun+=("deployment")
noun_aliases=()
noun_aliases+=("deploy")
noun_aliases+=("deployments")
}

_oc_rollout_undo()
{
last_command="oc_rollout_undo"
Expand Down Expand Up @@ -11713,6 +11768,7 @@ _oc_rollout()
commands+=("latest")
commands+=("pause")
commands+=("resume")
commands+=("status")
commands+=("undo")

flags=()
Expand Down
57 changes: 57 additions & 0 deletions contrib/completions/bash/openshift
Original file line number Diff line number Diff line change
Expand Up @@ -16212,6 +16212,62 @@ _openshift_cli_rollout_resume()
noun_aliases+=("deployments")
}

_openshift_cli_rollout_status()
{
last_command="openshift_cli_rollout_status"
commands=()

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--filename=")
flags_with_completion+=("--filename")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
two_word_flags+=("-f")
flags_with_completion+=("-f")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
local_nonpersistent_flags+=("--filename=")
flags+=("--recursive")
flags+=("-R")
local_nonpersistent_flags+=("--recursive")
flags+=("--as=")
flags+=("--certificate-authority=")
flags_with_completion+=("--certificate-authority")
flags_completion+=("_filedir")
flags+=("--client-certificate=")
flags_with_completion+=("--client-certificate")
flags_completion+=("_filedir")
flags+=("--client-key=")
flags_with_completion+=("--client-key")
flags_completion+=("_filedir")
flags+=("--cluster=")
flags+=("--config=")
flags_with_completion+=("--config")
flags_completion+=("_filedir")
flags+=("--context=")
flags+=("--google-json-key=")
flags+=("--insecure-skip-tls-verify")
flags+=("--log-flush-frequency=")
flags+=("--loglevel=")
flags+=("--logspec=")
flags+=("--match-server-version")
flags+=("--namespace=")
two_word_flags+=("-n")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
must_have_one_noun+=("deployment")
noun_aliases=()
noun_aliases+=("deploy")
noun_aliases+=("deployments")
}

_openshift_cli_rollout_undo()
{
last_command="openshift_cli_rollout_undo"
Expand Down Expand Up @@ -16278,6 +16334,7 @@ _openshift_cli_rollout()
commands+=("latest")
commands+=("pause")
commands+=("resume")
commands+=("status")
commands+=("undo")

flags=()
Expand Down
56 changes: 56 additions & 0 deletions contrib/completions/zsh/oc
Original file line number Diff line number Diff line change
Expand Up @@ -11809,6 +11809,61 @@ _oc_rollout_resume()
noun_aliases+=("deployments")
}

_oc_rollout_status()
{
last_command="oc_rollout_status"
commands=()

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--filename=")
flags_with_completion+=("--filename")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
two_word_flags+=("-f")
flags_with_completion+=("-f")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
local_nonpersistent_flags+=("--filename=")
flags+=("--recursive")
flags+=("-R")
local_nonpersistent_flags+=("--recursive")
flags+=("--as=")
flags+=("--certificate-authority=")
flags_with_completion+=("--certificate-authority")
flags_completion+=("_filedir")
flags+=("--client-certificate=")
flags_with_completion+=("--client-certificate")
flags_completion+=("_filedir")
flags+=("--client-key=")
flags_with_completion+=("--client-key")
flags_completion+=("_filedir")
flags+=("--cluster=")
flags+=("--config=")
flags_with_completion+=("--config")
flags_completion+=("_filedir")
flags+=("--context=")
flags+=("--insecure-skip-tls-verify")
flags+=("--log-flush-frequency=")
flags+=("--loglevel=")
flags+=("--logspec=")
flags+=("--match-server-version")
flags+=("--namespace=")
two_word_flags+=("-n")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
must_have_one_noun+=("deployment")
noun_aliases=()
noun_aliases+=("deploy")
noun_aliases+=("deployments")
}

_oc_rollout_undo()
{
last_command="oc_rollout_undo"
Expand Down Expand Up @@ -11874,6 +11929,7 @@ _oc_rollout()
commands+=("latest")
commands+=("pause")
commands+=("resume")
commands+=("status")
commands+=("undo")

flags=()
Expand Down
57 changes: 57 additions & 0 deletions contrib/completions/zsh/openshift
Original file line number Diff line number Diff line change
Expand Up @@ -16373,6 +16373,62 @@ _openshift_cli_rollout_resume()
noun_aliases+=("deployments")
}

_openshift_cli_rollout_status()
{
last_command="openshift_cli_rollout_status"
commands=()

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--filename=")
flags_with_completion+=("--filename")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
two_word_flags+=("-f")
flags_with_completion+=("-f")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
local_nonpersistent_flags+=("--filename=")
flags+=("--recursive")
flags+=("-R")
local_nonpersistent_flags+=("--recursive")
flags+=("--as=")
flags+=("--certificate-authority=")
flags_with_completion+=("--certificate-authority")
flags_completion+=("_filedir")
flags+=("--client-certificate=")
flags_with_completion+=("--client-certificate")
flags_completion+=("_filedir")
flags+=("--client-key=")
flags_with_completion+=("--client-key")
flags_completion+=("_filedir")
flags+=("--cluster=")
flags+=("--config=")
flags_with_completion+=("--config")
flags_completion+=("_filedir")
flags+=("--context=")
flags+=("--google-json-key=")
flags+=("--insecure-skip-tls-verify")
flags+=("--log-flush-frequency=")
flags+=("--loglevel=")
flags+=("--logspec=")
flags+=("--match-server-version")
flags+=("--namespace=")
two_word_flags+=("-n")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
must_have_one_noun+=("deployment")
noun_aliases=()
noun_aliases+=("deploy")
noun_aliases+=("deployments")
}

_openshift_cli_rollout_undo()
{
last_command="openshift_cli_rollout_undo"
Expand Down Expand Up @@ -16439,6 +16495,7 @@ _openshift_cli_rollout()
commands+=("latest")
commands+=("pause")
commands+=("resume")
commands+=("status")
commands+=("undo")

flags=()
Expand Down
14 changes: 14 additions & 0 deletions docs/generated/oc_by_example_content.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2245,6 +2245,20 @@ Resume a paused resource
====


== oc rollout status
Watch rollout status until it's done

====

[options="nowrap"]
----
# Watch the status of the latest rollout
oc rollout status dc/nginx

----
====


== oc rollout undo
Undo a previous rollout

Expand Down
1 change: 1 addition & 0 deletions docs/man/man1/.files_generated_oc
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ oc-rollout-history.1
oc-rollout-latest.1
oc-rollout-pause.1
oc-rollout-resume.1
oc-rollout-status.1
oc-rollout-undo.1
oc-rollout.1
oc-rsh.1
Expand Down
1 change: 1 addition & 0 deletions docs/man/man1/.files_generated_openshift
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ openshift-cli-rollout-history.1
openshift-cli-rollout-latest.1
openshift-cli-rollout-pause.1
openshift-cli-rollout-resume.1
openshift-cli-rollout-status.1
openshift-cli-rollout-undo.1
openshift-cli-rollout.1
openshift-cli-rsh.1
Expand Down
Loading