Skip to content

Commit

Permalink
Merge pull request #16104 from deads2k/cli-01-rbac
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 16052, 16105, 14319, 16106, 16104)

UPSTREAM: 51636: add reconcile command to kubectl auth

This picks the `kubectl auth reconcile` command from 1.8 (lgtm'ed and milestone set).

@sdodson @bparees @ewolinetz this is what to use for RBAC types.
  • Loading branch information
openshift-merge-robot authored Sep 2, 2017
2 parents 6527f42 + df0ff8b commit d319a0f
Show file tree
Hide file tree
Showing 19 changed files with 939 additions and 0 deletions.
79 changes: 79 additions & 0 deletions contrib/completions/bash/oc
Original file line number Diff line number Diff line change
Expand Up @@ -6506,11 +6506,90 @@ _oc_auth_can-i()
noun_aliases=()
}

_oc_auth_reconcile()
{
last_command="oc_auth_reconcile"
commands=()

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

flags+=("--allow-missing-template-keys")
local_nonpersistent_flags+=("--allow-missing-template-keys")
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+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--recursive")
flags+=("-R")
local_nonpersistent_flags+=("--recursive")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--as=")
flags+=("--as-group=")
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=")
flags_with_completion+=("--namespace")
flags_completion+=("__oc_get_namespaces")
two_word_flags+=("-n")
flags_with_completion+=("-n")
flags_completion+=("__oc_get_namespaces")
flags+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_flag+=("--filename=")
must_have_one_flag+=("-f")
must_have_one_noun=()
noun_aliases=()
}

_oc_auth()
{
last_command="oc_auth"
commands=()
commands+=("can-i")
commands+=("reconcile")

flags=()
two_word_flags=()
Expand Down
213 changes: 213 additions & 0 deletions contrib/completions/bash/openshift
Original file line number Diff line number Diff line change
Expand Up @@ -12156,11 +12156,93 @@ _openshift_cli_auth_can-i()
noun_aliases=()
}

_openshift_cli_auth_reconcile()
{
last_command="openshift_cli_auth_reconcile"
commands=()

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

flags+=("--allow-missing-template-keys")
local_nonpersistent_flags+=("--allow-missing-template-keys")
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+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--recursive")
flags+=("-R")
local_nonpersistent_flags+=("--recursive")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--as=")
flags+=("--as-group=")
flags+=("--azure-container-registry-config=")
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=")
flags_with_completion+=("--namespace")
flags_completion+=("__oc_get_namespaces")
two_word_flags+=("-n")
flags_with_completion+=("-n")
flags_completion+=("__oc_get_namespaces")
flags+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")
flags+=("--version")

must_have_one_flag=()
must_have_one_flag+=("--filename=")
must_have_one_flag+=("-f")
must_have_one_noun=()
noun_aliases=()
}

_openshift_cli_auth()
{
last_command="openshift_cli_auth"
commands=()
commands+=("can-i")
commands+=("reconcile")

flags=()
two_word_flags=()
Expand Down Expand Up @@ -26308,11 +26390,142 @@ _openshift_kube_auth_can-i()
noun_aliases=()
}

_openshift_kube_auth_reconcile()
{
last_command="openshift_kube_auth_reconcile"
commands=()

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

flags+=("--allow-missing-template-keys")
local_nonpersistent_flags+=("--allow-missing-template-keys")
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+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--recursive")
flags+=("-R")
local_nonpersistent_flags+=("--recursive")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--allow-verification-with-non-compliant-keys")
flags+=("--alsologtostderr")
flags+=("--application-metrics-count-limit=")
flags+=("--as=")
flags+=("--as-group=")
flags+=("--azure-container-registry-config=")
flags+=("--boot-id-file=")
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+=("--cloud-provider-gce-lb-src-cidrs=")
flags+=("--cluster=")
flags_with_completion+=("--cluster")
flags_completion+=("__kubectl_config_get_clusters")
flags+=("--config=")
flags_with_completion+=("--config")
flags_completion+=("_filedir")
flags+=("--container-hints=")
flags+=("--context=")
flags_with_completion+=("--context")
flags_completion+=("__kubectl_config_get_contexts")
flags+=("--default-not-ready-toleration-seconds=")
flags+=("--default-unreachable-toleration-seconds=")
flags+=("--docker=")
flags+=("--docker-env-metadata-whitelist=")
flags+=("--docker-only")
flags+=("--docker-root=")
flags+=("--enable-load-reader")
flags+=("--event-storage-age-limit=")
flags+=("--event-storage-event-limit=")
flags+=("--global-housekeeping-interval=")
flags+=("--google-json-key=")
flags+=("--housekeeping-interval=")
flags+=("--httptest.serve=")
flags+=("--insecure-skip-tls-verify")
flags+=("--ir-data-source=")
flags+=("--ir-dbname=")
flags+=("--ir-hawkular=")
flags+=("--ir-influxdb-host=")
flags+=("--ir-namespace-only")
flags+=("--ir-password=")
flags+=("--ir-percentile=")
flags+=("--ir-user=")
flags+=("--kubeconfig=")
flags+=("--log-backtrace-at=")
flags+=("--log-cadvisor-usage")
flags+=("--log-dir=")
flags+=("--log-flush-frequency=")
flags+=("--loglevel=")
flags+=("--logspec=")
flags+=("--logtostderr")
flags+=("--machine-id-file=")
flags+=("--match-server-version")
flags+=("--namespace=")
flags_with_completion+=("--namespace")
flags_completion+=("__kubectl_get_namespaces")
two_word_flags+=("-n")
flags_with_completion+=("-n")
flags_completion+=("__kubectl_get_namespaces")
flags+=("--request-timeout=")
flags+=("--server=")
flags+=("--stderrthreshold=")
flags+=("--storage-driver-buffer-duration=")
flags+=("--storage-driver-db=")
flags+=("--storage-driver-host=")
flags+=("--storage-driver-password=")
flags+=("--storage-driver-secure")
flags+=("--storage-driver-table=")
flags+=("--storage-driver-user=")
flags+=("--token=")
flags+=("--user=")
flags_with_completion+=("--user")
flags_completion+=("__kubectl_config_get_users")
flags+=("--v=")
two_word_flags+=("-v")
flags+=("--version")
flags+=("--vmodule=")

must_have_one_flag=()
must_have_one_flag+=("--filename=")
must_have_one_flag+=("-f")
must_have_one_noun=()
noun_aliases=()
}

_openshift_kube_auth()
{
last_command="openshift_kube_auth"
commands=()
commands+=("can-i")
commands+=("reconcile")

flags=()
two_word_flags=()
Expand Down
Loading

0 comments on commit d319a0f

Please sign in to comment.