Skip to content

Commit

Permalink
csiaddons: add rbac permission for setting ownerRef
Browse files Browse the repository at this point in the history
csiaddons require new RBAC permission for setting onwerRef on
csiaddonsnode obj, going to be owned by either a deployment
or a daemonsets

Signed-off-by: Rewant Soni <[email protected]>
  • Loading branch information
rewantsoni committed Nov 11, 2024
1 parent eaea4ae commit 73a070d
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/csi-rbac/cephfs_ctrlplugin_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ rules:
- apiGroups: ["apps"]
resources: ["replicasets"]
verbs: ["get"]
- apiGroups: ["apps"]
resources: ["deployments/finalizers", "daemonsets/finalizers"]
verbs: ["update"]
3 changes: 3 additions & 0 deletions config/csi-rbac/rbd_ctrlplugin_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ rules:
- apiGroups: ["apps"]
resources: ["replicasets"]
verbs: ["get"]
- apiGroups: ["apps"]
resources: ["deployments/finalizers", "daemonsets/finalizers"]
verbs: ["update"]
3 changes: 3 additions & 0 deletions config/csi-rbac/rbd_nodeplugin_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ rules:
- apiGroups: ["apps"]
resources: ["replicasets"]
verbs: ["get"]
- apiGroups: ["apps"]
resources: ["deployments/finalizers", "daemonsets/finalizers"]
verbs: ["update"]
21 changes: 21 additions & 0 deletions deploy/all-in-one/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14112,6 +14112,13 @@ rules:
- replicasets
verbs:
- get
- apiGroups:
- apps
resources:
- deployments/finalizers
- daemonsets/finalizers
verbs:
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down Expand Up @@ -14191,6 +14198,13 @@ rules:
- replicasets
verbs:
- get
- apiGroups:
- apps
resources:
- deployments/finalizers
- daemonsets/finalizers
verbs:
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down Expand Up @@ -14218,6 +14232,13 @@ rules:
- replicasets
verbs:
- get
- apiGroups:
- apps
resources:
- deployments/finalizers
- daemonsets/finalizers
verbs:
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
21 changes: 21 additions & 0 deletions deploy/multifile/csi-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ rules:
- replicasets
verbs:
- get
- apiGroups:
- apps
resources:
- deployments/finalizers
- daemonsets/finalizers
verbs:
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down Expand Up @@ -109,6 +116,13 @@ rules:
- replicasets
verbs:
- get
- apiGroups:
- apps
resources:
- deployments/finalizers
- daemonsets/finalizers
verbs:
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down Expand Up @@ -136,6 +150,13 @@ rules:
- replicasets
verbs:
- get
- apiGroups:
- apps
resources:
- deployments/finalizers
- daemonsets/finalizers
verbs:
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down

0 comments on commit 73a070d

Please sign in to comment.