Bug 1372387

Summary: RFE - Add 'hpa' resource to 'oc get all'
Product: OpenShift Container Platform Reporter: jritenou
Component: RFEAssignee: Fabiano Franz <ffranz>
Status: CLOSED CURRENTRELEASE QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: aos-bugs, ccoleman, deads, erich, erjones, ffranz, jokerman, mmccomas, yapei
Target Milestone: ---   
Target Release: ---   
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-06-13 14:57:27 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:

Description jritenou 2016-09-01 14:48:54 UTC
Description of problem:

A customer recently asked if we can add the horizontalpodautoscaler (hpa) resource to the output of 'oc get all'.

Since this isn't a cluster level resource that is possibly reusable, can that be done?

Comment 1 Fabiano Franz 2016-09-01 17:27:47 UTC
Users must be aware that by adding it to 'all' means not only 'get all' but only 'delete all'. But if that's only I'm good with adding hpa's to 'all'.

Comment 2 Fabiano Franz 2016-09-01 17:28:09 UTC
s/only/ok

Comment 3 David Eads 2016-09-01 17:37:06 UTC
@fabiano  There's a pull upstream to expand their list based on discovery.  It got reverted because it broke kubemark.  You can try to shepherd this: https://github.com/kubernetes/kubernetes/pull/30199

Comment 4 Juan Vallejo 2017-01-25 16:07:03 UTC
Related Trello card: https://trello.com/c/4idHX3Rd/753-2-add-hpa-resource-to-oc-get-all-cli-kubernetes

Also related upstream PR: https://github.com/kubernetes/kubernetes/pull/39887

The PR linked in https://bugzilla.redhat.com/show_bug.cgi?id=1372387#c3 has already merged, and `oc get all` currently includes hpa resources https://github.com/openshift/origin/blob/master/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/shortcut_restmapper.go#L116. Should this card be moved to ON_QA?

Comment 5 Xingxing Xia 2017-11-13 05:44:38 UTC
It is covered in mentioned trello card that is accepted and gone through routine tests since then. Moving to VERIFIED