Bug 2107003 - The bash completion doesn't work for get subcommand
Summary: The bash completion doesn't work for get subcommand
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.11
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.z
Assignee: Arda Guclu
QA Contact: zhou ying
: 2110359 (view as bug list)
Depends On: 2101885
TreeView+ depends on / blocked
Reported: 2022-07-14 05:51 UTC by OpenShift BugZilla Robot
Modified: 2022-08-23 15:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-08-23 15:08:36 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift oc pull 1206 0 None open [release-4.11] Bug 2107003: Set completion function for get command 2022-07-29 17:25:14 UTC
Red Hat Product Errata RHSA-2022:6103 0 None None None 2022-08-23 15:08:49 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.