Skip to content

Commit

Permalink
Merge pull request rook#15071 from Madhu-1/add-rbac-csi-addons
Browse files Browse the repository at this point in the history
csi: provide delete access to csiaddonsnode
  • Loading branch information
subhamkrai authored Nov 27, 2024
2 parents df958b3 + b34c0b9 commit ea39473
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions deploy/charts/rook-ceph/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ rules:
{{- if and .Values.csi.csiAddons .Values.csi.csiAddons.enabled }}
- apiGroups: ["csiaddons.openshift.io"]
resources: ["csiaddonsnodes"]
verbs: ["get", "create", "update"]
verbs: ["get", "create", "update", "delete"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get"]
Expand All @@ -95,7 +95,7 @@ metadata:
rules:
- apiGroups: ["csiaddons.openshift.io"]
resources: ["csiaddonsnodes"]
verbs: ["get", "create", "update"]
verbs: ["get", "create", "update", "delete"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get"]
Expand All @@ -119,7 +119,7 @@ rules:
{{- if and .Values.csi.csiAddons .Values.csi.csiAddons.enabled }}
- apiGroups: ["csiaddons.openshift.io"]
resources: ["csiaddonsnodes"]
verbs: ["get", "create", "update"]
verbs: ["get", "create", "update", "delete"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get"]
Expand Down
6 changes: 3 additions & 3 deletions deploy/examples/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ rules:
verbs: ["get", "watch", "list", "delete", "update", "create"]
- apiGroups: ["csiaddons.openshift.io"]
resources: ["csiaddonsnodes"]
verbs: ["get", "create", "update"]
verbs: ["get", "create", "update", "delete"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get"]
Expand All @@ -798,7 +798,7 @@ metadata:
rules:
- apiGroups: ["csiaddons.openshift.io"]
resources: ["csiaddonsnodes"]
verbs: ["get", "create", "update"]
verbs: ["get", "create", "update", "delete"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get"]
Expand All @@ -820,7 +820,7 @@ rules:
verbs: ["get", "watch", "list", "delete", "update", "create"]
- apiGroups: ["csiaddons.openshift.io"]
resources: ["csiaddonsnodes"]
verbs: ["get", "create", "update"]
verbs: ["get", "create", "update", "delete"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get"]
Expand Down

0 comments on commit ea39473

Please sign in to comment.