Skip to content

Commit

Permalink
CARRY: Allow non-admin user access to view clusterqueue(metrics)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiona-Waters authored and openshift-merge-bot[bot] committed Mar 6, 2024
1 parent a060137 commit ac2a175
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/rhoai/batch-user-rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: batch-user-rolebinding
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: 'system:authenticated'
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: batch-user-role
7 changes: 7 additions & 0 deletions config/rhoai/clusterqueue_viewer_role_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# patch to add clusterqueue-viewer-role to batch-user
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: clusterqueue-viewer-role
labels:
rbac.kueue.x-k8s.io/batch-user: 'true'
2 changes: 2 additions & 0 deletions config/rhoai/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ resources:
- monitor.yaml
- binding_admin_roles.yaml
- webhook_network_policy.yaml
- batch-user-rolebinding.yaml

patches:
# Mount the controller config file for loading manager configurations
Expand All @@ -51,3 +52,4 @@ patches:
- path: auth_proxy_service_patch.yaml
- path: mutating_webhook_patch.yaml
- path: validating_webhook_patch.yaml
- path: clusterqueue_viewer_role_patch.yaml

0 comments on commit ac2a175

Please sign in to comment.