Bug 2107003

Summary: The bash completion doesn't work for get subcommand
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: ocAssignee: Arda Guclu <aguclu>
oc sub component: oc QA Contact: zhou ying <yinzhou>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: mfojtik, srozen
Version: 4.11   
Target Milestone: ---   
Target Release: 4.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-23 15:08:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2101885    
Bug Blocks:    

Comment 1 zhou ying 2022-07-14 06:32:43 UTC
checked with the pr , can't reproduce the issue now:

[root@localhost oc]# ./oc completion bash >new_oc_bash
[root@localhost oc]# source new_oc_bash 
[root@localhost oc]# ./oc get 
Display all 193 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

Comment 2 Arda Guclu 2022-08-03 10:01:26 UTC
*** Bug 2110359 has been marked as a duplicate of this bug. ***

Comment 4 zhou ying 2022-08-15 03:08:26 UTC
oc version
Client Version: 4.11.0-0.nightly-2022-08-12-000313
Kustomize Version: v4.5.4


[root@localhost ~]# oc completion bash >new_oc_bash
[root@localhost ~]# source new_oc_bash
[root@localhost ~]# oc get 
Display all 201 possibilities? (y or n)
alertmanagerconfigs.monitoring.coreos.com                        kubestorageversionmigrators.operator.openshift.io
alertmanagers.monitoring.coreos.com                              leases.coordination.k8s.io
apirequestcounts.apiserver.openshift.io                          limitranges
。。。

Comment 7 errata-xmlrpc 2022-08-23 15:08:36 UTC
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.11.1 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:6103