4.11.0-fc.0 With bash completion enabled, we're unable to complete the command for "oc get". Bash completion does work for other sub-commands like describe.
[root@localhost ~]# ./oc version --client Client Version: 4.11.0-fc.0 Kustomize Version: v4.5.4 [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# ./oc get Display all 192 possibilities? (y or n) alertmanagerconfigs.monitoring.coreos.com kubecontrollermanagers.operator.openshift.io alertmanagers.monitoring.coreos.com kubeletconfigs.machineconfiguration.openshift.io apirequestcounts.apiserver.openshift.io kubeschedulers.operator.openshift.io apiservers.config.openshift.io kubestorageversionmigrators.operator.openshift.io apiservices.apiregistration.k8s.io leases.coordination.k8s.io appliedclusterresourcequotas.quota.openshift.io limitranges ....
with latest oc version , can't reproduce the issue now: source <(./oc completion bash) [root@localhost ~]# ./oc version --client Client Version: 4.12.0-0.nightly-2022-07-05-122228 Kustomize Version: v4.5.4 [root@localhost ~]# ./oc get Display all 192 possibilities? (y or n) alertmanagerconfigs.monitoring.coreos.com kubeapiservers.operator.openshift.io alertmanagers.monitoring.coreos.com kubecontrollermanagers.operator.openshift.io apirequestcounts.apiserver.openshift.io kubeletconfigs.machineconfiguration.openshift.io apiservers.config.openshift.io kubeschedulers.operator.openshift.io apiservices.apiregistration.k8s.io kubestorageversionmigrators.operator.openshift.io
*** Bug 2110359 has been marked as a duplicate of this bug. ***
I set duplicate id of 4.12. This is 4.11 https://bugzilla.redhat.com/show_bug.cgi?id=2107003 and thishttps://github.com/openshift/oc/pull/1206 is the patch waiting to be approved.
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 (Moderate: OpenShift Container Platform 4.12.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:7399