디렉토리 구조 및 각 서비스 추가
This commit is contained in:
14
helm/openebs/charts/cstor/templates/snapshot-class.yaml
Normal file
14
helm/openebs/charts/cstor/templates/snapshot-class.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ if or (.Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1/VolumeSnapshotClass") (.Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1/VolumeSnapshotClass") }}
|
||||
kind: VolumeSnapshotClass
|
||||
apiVersion: {{ if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1/VolumeSnapshotClass" -}}
|
||||
snapshot.storage.k8s.io/v1beta1
|
||||
{{- else -}}
|
||||
snapshot.storage.k8s.io/v1
|
||||
{{- end }}
|
||||
metadata:
|
||||
name: csi-cstor-snapshotclass
|
||||
annotations:
|
||||
snapshot.storage.kubernetes.io/is-default-class: "true"
|
||||
driver: cstor.csi.openebs.io
|
||||
deletionPolicy: Delete
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user