-
Bug
-
Resolution: Not a Bug
-
Normal
-
None
-
4.15
-
Moderate
-
None
-
Unspecified
-
If docs needed, set a value
-
Cluster administrators can get the OpenShift version by looking at the ClusterVersion resource. Normal users have no way to get the OpenShift version, however (that I could find), only the k8s version. This makes it difficult to report bugs, know what features are available, or know what version of the documentation to reference.
Running `oc version` doesn't show the OpenShift version to a normal user. I see this error when increasing the log level:
I0624 11:58:12.876647 34052 request.go:968] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"clusteroperators.config.openshift.io \"openshift-apiserver\" is forbidden: User \"test\" cannot get resource \"clusteroperators\" in API group \"config.openshift.io\" at the cluster scope","reason":"Forbidden","details":
{"name":"openshift-apiserver","group":"config.openshift.io","kind":"clusteroperators"},"code":403}
I0624 11:58:12.876971 34052 version.go:137] OpenShift Version not found (must be logged in to cluster as admin): clusteroperators.config.openshift.io "openshift-apiserver" is forbidden: User "test" cannot get resource "clusteroperators" in API group "config.openshift.io" at the cluster scope
- blocks
-
WRKLDS-1042 Normal users have no way to get the OpenShift version
- To Do
- is cloned by
-
OCPBUGS-13054 Normal users have no way to get the OpenShift version
- Closed