Skip to content

Commit

Permalink
[internal] Add VolumeSnapshotClass
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <vasily.oleynikov@flant.com>
  • Loading branch information
duckhawk committed Dec 9, 2024
1 parent bde7734 commit 1fc84fb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions templates/volumesnapshotclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{- if (.Values.global.enabledModules | has "snapshot-controller") }}
---
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
{{- include "helm_lib_module_labels" (list . (dict "app" "csi-ceph")) | nindent 2 }}
name: {{ .Chart.Name }}-cephfs
driver: cephfs.csi.ceph.com
deletionPolicy: Delete
parameters:
---
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
{{- include "helm_lib_module_labels" (list . (dict "app" "csi-ceph")) | nindent 2 }}
name: {{ .Chart.Name }}-rbd
driver: rbd.csi.ceph.com
deletionPolicy: Delete
parameters:
{{ end }}

0 comments on commit 1fc84fb

Please sign in to comment.