Skip to content

Commit

Permalink
add patch to provisioner and snapshotor clusterrole
Browse files Browse the repository at this point in the history
Signed-off-by: hanenMizouni <[email protected]>
  • Loading branch information
outscale-hmi committed Oct 15, 2024
1 parent 855a778 commit d5defb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion osc-bsu-csi-driver/templates/clusterrole-provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
rules:
- apiGroups: [ "" ]
resources: [ "persistentvolumes" ]
verbs: [ "get", "list", "watch", "create", "delete" ]
verbs: [ "get", "list", "watch", "create", "patch", "delete" ]
- apiGroups: [ "" ]
resources: [ "persistentvolumeclaims" ]
verbs: [ "get", "list", "watch", "update" ]
Expand Down
4 changes: 2 additions & 2 deletions osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ rules:
verbs: ["get", "list", "watch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents"]
verbs: ["create", "get", "list", "watch", "update", "delete"]
verbs: ["create", "get", "list", "watch", "update", "delete", "patch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents/status"]
verbs: ["update"]
verbs: ["update", "patch"]
{{- with .Values.sidecars.snapshotterImage.additionalClusterRoleRules }}
{{- . | toYaml | nindent 2 }}
{{- end }}
Expand Down

0 comments on commit d5defb8

Please sign in to comment.