Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ spec:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
resources: {{ toYaml .Values.csi.provisioner.resources | nindent 12 }}
{{- if .Values.csi.snapshotter.enabled }}
- name: csi-snapshotter
securityContext:
{{- toYaml .Values.csi.plugin.controllerPlugin.securityContext | nindent 12 }}
Expand All @@ -111,6 +112,7 @@ spec:
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir
resources: {{ toYaml .Values.csi.snapshotter.resources | nindent 12 }}
{{- end }}
- name: csi-resizer
securityContext:
{{- toYaml .Values.csi.plugin.controllerPlugin.securityContext | nindent 12 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/cinder-csi-plugin/templates/controllerplugin-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ roleRef:
name: csi-provisioner-role
apiGroup: rbac.authorization.k8s.io

{{- if .Values.csi.snapshotter.enabled }}
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -125,6 +126,7 @@ roleRef:
kind: ClusterRole
name: csi-snapshotter-role
apiGroup: rbac.authorization.k8s.io
{{- end }}
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
1 change: 1 addition & 0 deletions charts/cinder-csi-plugin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ csi:
extraArgs: {}
extraEnv: []
snapshotter:
enabled: true
image:
repository: registry.k8s.io/sig-storage/csi-snapshotter
tag: v8.4.0
Expand Down