Skip to content

Commit

Permalink
Merge pull request #171 from rewantsoni/permissions
Browse files Browse the repository at this point in the history
csiaddons: add rbac permission for setting ownerRef
  • Loading branch information
Madhu-1 authored Nov 11, 2024
2 parents eaea4ae + 73a070d commit 85fb846
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 85fb846

Please sign in to comment.