Bug 1534371

Summary: Auto complete by oc suggests wrong resource
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED NOTABUG QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, jokerman, mmccomas, wmeng
Target Milestone: ---   
Target Release: 3.9.0   
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: 2019-02-26 16:09:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description XiaochuanWang 2018-01-15 06:08:01 UTC
Description of problem:
"oc get is<tab>" outputs "oc get ispersonalsubjectaccessreview"

Version-Release number of selected component (if applicable):
oc v3.9.0-0.19.0

How reproducible:
Always

Steps to Reproduce:
1.  Try following auto completion:
oc get is<tab> (or: oc delete/edit is<tab>)
oc get po<tab> # doesn't complete with "pod". It should complete. v3.7 does.
oc get d<tab> # doesn't complete with "dc". v3.7 also does not. It should complete short name like below "svc"
oc get sv<tab> # Can complete with "svc"

Actual results:
oc get ispersonalsubjectaccessreview

Expected results:
Should not suggest invalid resource.

Additional info:

Comment 2 Maciej Szulik 2019-02-26 16:09:36 UTC
It looks like the completions are not up-to-date. Feel free to reopen if this is still an issue.