Skip to content

Commit

Permalink
csiaddons: add rbac permission to delete the csiaddons obj
Browse files Browse the repository at this point in the history
csiaddons needs delete permission for setting ownerRef

Signed-off-by: Rewant Soni <[email protected]>
  • Loading branch information
rewantsoni committed Nov 27, 2024
1 parent ceae5f3 commit fcb8646
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/csi-rbac/cephfs_ctrlplugin_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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
2 changes: 1 addition & 1 deletion config/csi-rbac/rbd_ctrlplugin_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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
2 changes: 1 addition & 1 deletion config/csi-rbac/rbd_nodeplugin_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
rules:
- apiGroups: ["csiaddons.openshift.io"]
resources: ["csiaddonsnodes"]
verbs: ["get", "create", "update"]
verbs: ["get", "create", "update", "delete"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get"]
Expand Down
3 changes: 3 additions & 0 deletions deploy/all-in-one/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14100,6 +14100,7 @@ rules:
- get
- create
- update
- delete
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -14186,6 +14187,7 @@ rules:
- get
- create
- update
- delete
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -14220,6 +14222,7 @@ rules:
- get
- create
- update
- delete
- apiGroups:
- ""
resources:
Expand Down
3 changes: 3 additions & 0 deletions deploy/multifile/csi-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ rules:
- get
- create
- update
- delete
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -104,6 +105,7 @@ rules:
- get
- create
- update
- delete
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -138,6 +140,7 @@ rules:
- get
- create
- update
- delete
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit fcb8646

Please sign in to comment.