Description of problem: oc bash-completion problem on oc project command Version-Release number of selected component (if applicable): # oc version Client Version: 4.10.10 Server Version: 4.10.10 Kubernetes Version: v1.23.5+9ce5071 How reproducible: 100% Steps to Reproduce: 1. # oc completion bash > oc_bash_completion 2. # source oc_bash_completion 3. # export KUBECONFIG=kubeconfig Actual results: # oc proj[TAB] ├> oc project [TAB] | Here it should print project names. But I get ├> oc project project └> oc project project [TAB] Expected results: The oc cli should print the project names when pressing TAB after "oc project [TAB]" command. Additional info:
oc project [TAB] will show all the projects now: oc project testpforzy zhouyttt2 oc projects You have access to the following projects and can switch between them with ' project <projectname>': * testpforzy zhouyttt2 Using project "testpforzy" on server "https://api.yinzhou-07a.qe.gcp.devcluster.openshift.com:6443". oc version --client Client Version: 4.11.0-202205070617.p0.g0bf70d5.assembly.stream-0bf70d5 Kustomize Version: v4.5.4
Backport to 4.10 PR has been opened https://github.com/openshift/oc/pull/1131
*** Bug 2087079 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069