Bug 1841128 - oc get <>rolebinding is missing roleBindingColumns
Summary: oc get <>rolebinding is missing roleBindingColumns
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.4
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-28 12:50 UTC by Matthew Robson
Modified: 2023-10-06 20:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 17:42:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:42:44 UTC

Description Matthew Robson 2020-05-28 12:50:01 UTC
Description of problem:

oc get rolebinding / clusterrolebinding are missing the usage of roleBindingColumns

https://github.com/openshift/ose/blob/master/staging/src/github.com/openshift/openshift-apiserver/pkg/printers/internalversion/printer.go#L46

Similar issue to https://bugzilla.redhat.com/show_bug.cgi?id=1784151

OCP 3.x:
oc get rolebinding
NAME                              ROLE                                          USERS     GROUPS                                     SERVICE ACCOUNTS                   SUBJECTS
logging-elasticsearch-view-role   /view                                                                                              aggregated-logging-elasticsearch
prometheus-metrics-viewer         openshift-logging/prometheus-metrics-viewer                                                        openshift-metrics/prometheus
system:deployer                   /system:deployer                                                                                   deployer
system:deployers                  /system:deployer                                                                                   deployer
system:image-builder              /system:image-builder                                                                              builder
system:image-builders             /system:image-builder                                                                              builder
system:image-puller               /system:image-puller                                    system:serviceaccounts:openshift-logging
system:image-pullers              /system:image-puller                                    system:serviceaccounts:openshift-logging

OCP 4:
oc get rolebinding
NAME                                      AGE
openshift-sdn-controller-leaderelection   33d
prometheus-k8s                            33d
system:deployers                          33d
system:image-builders                     33d
system:image-pullers                      33d

Version-Release number of selected component (if applicable):

4.4.4

How reproducible:
Always

Steps to Reproduce:
1. oc get rolebinding
2. oc get clusterrolebinding
3.

Actual results:
No extra columns

Expected results:
Shows the extra columns with useful information


Additional info:

Comment 1 Maciej Szulik 2020-05-28 14:02:03 UTC
This was fixed in 4.5, so I'm moving this to qa.

Comment 4 zhou ying 2020-06-01 03:05:02 UTC
[root@dhcp-140-138 ~]# oc get clusterrolebinding |head 
NAME                                                                             ROLE                                                                               AGE
alertmanager-main                                                                ClusterRole/alertmanager-main                                                      2m57s


[root@dhcp-140-138 ~]# oc get rolebinding 
NAME                                                              ROLE                                                                   AGE
prometheus-k8s                                                    Role/prometheus-k8s                                                    131m


[root@dhcp-140-138 ~]# oc version --client -o json 
{
  "clientVersion": {
    "major": "",
    "minor": "",
    "gitVersion": "4.5.0-202005291417-9933eb9",
    "gitCommit": "9933eb90790b36d153fcc55f8404724bb0929b96",
    "gitTreeState": "clean",
    "buildDate": "2020-05-29T14:24:36Z",
    "goVersion": "go1.13.4",
    "compiler": "gc",
    "platform": "linux/amd64"
  }
}

Comment 5 errata-xmlrpc 2020-07-13 17:42:23 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2409


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