| Summary: | [RFE] Collect the available resources within OpenShift | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Eric Jones <erjones> |
| Component: | RFE | Assignee: | Fabiano Franz <ffranz> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Xingxing Xia <xxia> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.2.1 | CC: | aos-bugs, ccoleman, dmoessne, erich, erjones, 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-12 12:34:19 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
Eric Jones
2016-09-07 17:47:58 UTC
Can you please clarify what you mean by "the resources that are available" here? Is it the available cluster resources, like in quotas (volumes, etc) or API resources? We have 'oc get all' which will list most (although not all) API resources available in a given namespace, and can be used like 'oc get all --all' to fetch it from all namespaces. In case of cluster statistic of resources, there is 'oadm top' which should give you at least part of that. Does any of them help? Hi Fabiano, My apologizes for the massive delay. The `oc get all` output is along the idea that I am looking for, as I do want to know the API resources. Currently the only way to get all of the api resources is to reach out to the api endpoint itself and get all of the options, and then to handle the output. But we do not have a tool in the cli that is something like `oc get resources`. In theory, an ideal for this would be to have each user only be able to see what endpoints they have permissions on (but that is going above and beyond what I am looking for). Also what version is `oadm top` a part of? I am running 3.2.1 and do not have that command. Would the functionality that `oc get` and `oc types` have today cover this, or are you also looking to retrieve the actual resource values rather than just information on which types exist? oc api-resources covers this in 3.11. oc api-resources implemented since 3.10 |