forked from ceph/ceph-csi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgroupsnapshotclass.yaml
More file actions
30 lines (30 loc) · 1.4 KB
/
groupsnapshotclass.yaml
File metadata and controls
30 lines (30 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{{- if .Values.volumeGroupSnapshotClass.create -}}
apiVersion: groupsnapshot.storage.k8s.io/v1beta2
kind: VolumeGroupSnapshotClass
metadata:
name: {{ .Values.volumeGroupSnapshotClass.name }}
{{- if .Values.volumeGroupSnapshotClass.annotations }}
annotations:
{{ toYaml .Values.volumeGroupSnapshotClass.annotations | indent 4 }}
{{- end }}
labels:
app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
driver: {{ .Values.driverName }}
parameters:
clusterID: {{ .Values.volumeGroupSnapshotClass.clusterID }}
fsName: {{ .Values.volumeGroupSnapshotClass.fsName }}
{{- if .Values.volumeGroupSnapshotClass.volumeGroupNamePrefix }}
volumeGroupNamePrefix: "{{ .Values.volumeGroupSnapshotClass.volumeGroupNamePrefix }}"
{{- end }}
csi.storage.k8s.io/group-snapshotter-secret-name: {{ .Values.volumeGroupSnapshotClass.groupSnapshotterSecret }}
{{- if .Values.volumeGroupSnapshotClass.groupSnapshotterSecretNamespace }}
csi.storage.k8s.io/group-snapshotter-secret-namespace: {{ .Values.volumeGroupSnapshotClass.groupSnapshotterSecretNamespace }}
{{ else }}
csi.storage.k8s.io/group-snapshotter-secret-namespace: {{ .Release.Namespace }}
{{- end }}
deletionPolicy: {{ .Values.volumeGroupSnapshotClass.deletionPolicy }}
{{- end -}}