Skip to content

Commit

Permalink
Grant nerc-ops read access to all operators.coreos.com objects
Browse files Browse the repository at this point in the history
This will allow you to e.g. "kubectl get operators".
  • Loading branch information
larsks committed Feb 12, 2025
1 parent 0c29f6e commit e101700
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
nerc.mghpcc.org/aggregate-to-nerc-ops: "true"
name: nerc-ops-operators
rules:
- apiGroups:
- "operators.coreos.com"
resources:
- "*"
verbs:
- list
- get
- watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- clusterrole.yaml
1 change: 1 addition & 0 deletions cluster-scope/bundles/nerc-ops-rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ resources:
- ../../base/rbac.authorization.k8s.io/clusterroles/nerc-ops-monitoring
- ../../base/rbac.authorization.k8s.io/clusterroles/nerc-ops-machineconfig
- ../../base/rbac.authorization.k8s.io/clusterroles/nerc-ops-rhoai
- ../../base/rbac.authorization.k8s.io/clusterroles/nerc-ops-operators

0 comments on commit e101700

Please sign in to comment.