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

[WIP] oc create clusterrole: new command #11937

Closed
Closed
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
48 changes: 48 additions & 0 deletions contrib/completions/bash/oc
Original file line number Diff line number Diff line change
Expand Up @@ -6404,6 +6404,53 @@ _oc_create_clusterresourcequota()
noun_aliases=()
}

_oc_create_clusterrole()
{
last_command="oc_create_clusterrole"
commands=()

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

flags+=("--resources=")
local_nonpersistent_flags+=("--resources=")
flags+=("--verbs=")
local_nonpersistent_flags+=("--verbs=")
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+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_oc_create_configmap()
{
last_command="oc_create_configmap"
Expand Down Expand Up @@ -8025,6 +8072,7 @@ _oc_create()
last_command="oc_create"
commands=()
commands+=("clusterresourcequota")
commands+=("clusterrole")
commands+=("configmap")
commands+=("deployment")
commands+=("deploymentconfig")
Expand Down
49 changes: 49 additions & 0 deletions contrib/completions/bash/openshift
Original file line number Diff line number Diff line change
Expand Up @@ -10987,6 +10987,54 @@ _openshift_cli_create_clusterresourcequota()
noun_aliases=()
}

_openshift_cli_create_clusterrole()
{
last_command="openshift_cli_create_clusterrole"
commands=()

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

flags+=("--resources=")
local_nonpersistent_flags+=("--resources=")
flags+=("--verbs=")
local_nonpersistent_flags+=("--verbs=")
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+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_openshift_cli_create_configmap()
{
last_command="openshift_cli_create_configmap"
Expand Down Expand Up @@ -12631,6 +12679,7 @@ _openshift_cli_create()
last_command="openshift_cli_create"
commands=()
commands+=("clusterresourcequota")
commands+=("clusterrole")
commands+=("configmap")
commands+=("deployment")
commands+=("deploymentconfig")
Expand Down
48 changes: 48 additions & 0 deletions contrib/completions/zsh/oc
Original file line number Diff line number Diff line change
Expand Up @@ -6565,6 +6565,53 @@ _oc_create_clusterresourcequota()
noun_aliases=()
}

_oc_create_clusterrole()
{
last_command="oc_create_clusterrole"
commands=()

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

flags+=("--resources=")
local_nonpersistent_flags+=("--resources=")
flags+=("--verbs=")
local_nonpersistent_flags+=("--verbs=")
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+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_oc_create_configmap()
{
last_command="oc_create_configmap"
Expand Down Expand Up @@ -8186,6 +8233,7 @@ _oc_create()
last_command="oc_create"
commands=()
commands+=("clusterresourcequota")
commands+=("clusterrole")
commands+=("configmap")
commands+=("deployment")
commands+=("deploymentconfig")
Expand Down
49 changes: 49 additions & 0 deletions contrib/completions/zsh/openshift
Original file line number Diff line number Diff line change
Expand Up @@ -11148,6 +11148,54 @@ _openshift_cli_create_clusterresourcequota()
noun_aliases=()
}

_openshift_cli_create_clusterrole()
{
last_command="openshift_cli_create_clusterrole"
commands=()

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

flags+=("--resources=")
local_nonpersistent_flags+=("--resources=")
flags+=("--verbs=")
local_nonpersistent_flags+=("--verbs=")
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+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_openshift_cli_create_configmap()
{
last_command="openshift_cli_create_configmap"
Expand Down Expand Up @@ -12792,6 +12840,7 @@ _openshift_cli_create()
last_command="openshift_cli_create"
commands=()
commands+=("clusterresourcequota")
commands+=("clusterrole")
commands+=("configmap")
commands+=("deployment")
commands+=("deploymentconfig")
Expand Down
13 changes: 13 additions & 0 deletions docs/generated/oc_by_example_content.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,19 @@ Create cluster resource quota resource.
====


== oc create clusterrole
Create a new cluster role

====

[options="nowrap"]
----
# TODO
oc create clusterrole dev --resources a,b,c --verbs x,y,z
----
====


== oc create configmap
Create a configmap from a local file, directory or literal value

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 @@ -113,6 +113,7 @@ oc-config-view.1
oc-config.1
oc-convert.1
oc-create-clusterresourcequota.1
oc-create-clusterrole.1
oc-create-configmap.1
oc-create-deployment.1
oc-create-deploymentconfig.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 @@ -202,6 +202,7 @@ openshift-cli-config-view.1
openshift-cli-config.1
openshift-cli-convert.1
openshift-cli-create-clusterresourcequota.1
openshift-cli-create-clusterrole.1
openshift-cli-create-configmap.1
openshift-cli-create-deployment.1
openshift-cli-create-deploymentconfig.1
Expand Down
Loading