forked from rook/rook
helm: add annotations and labels for VSC
add support to specify annotations and labels for the volumesnapshotclass. closes: #9655 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
@@ -11,8 +11,15 @@ apiVersion: snapshot.storage.k8s.io/v1beta1
|
||||
kind: VolumeSnapshotClass
|
||||
metadata:
|
||||
name: {{ $filesystemvsc.name }}
|
||||
{{- if $filesystemvsc.labels }}
|
||||
labels:
|
||||
{{ toYaml $filesystemvsc.labels | indent 4 }}
|
||||
{{- end }}
|
||||
annotations:
|
||||
snapshot.storage.kubernetes.io/is-default-class: "{{ if default false $filesystemvsc.isDefault }}true{{ else }}false{{ end }}"
|
||||
{{- if $filesystemvsc.annotations }}
|
||||
{{ toYaml $filesystemvsc.annotations | indent 4 }}
|
||||
{{- end }}
|
||||
driver: {{ .Values.operatorNamespace }}.cephfs.csi.ceph.com
|
||||
parameters:
|
||||
clusterID: {{ .Release.Namespace }}
|
||||
@@ -34,8 +41,15 @@ apiVersion: snapshot.storage.k8s.io/v1beta1
|
||||
kind: VolumeSnapshotClass
|
||||
metadata:
|
||||
name: {{ $blockpoolvsc.name }}
|
||||
{{- if $blockpoolvsc.labels }}
|
||||
labels:
|
||||
{{ toYaml $blockpoolvsc.labels | indent 4 }}
|
||||
{{- end }}
|
||||
annotations:
|
||||
snapshot.storage.kubernetes.io/is-default-class: "{{ if default false $blockpoolvsc.isDefault }}true{{ else }}false{{ end }}"
|
||||
{{- if $blockpoolvsc.annotations }}
|
||||
{{ toYaml $blockpoolvsc.annotations | indent 4 }}
|
||||
{{- end }}
|
||||
driver: {{ .Values.operatorNamespace }}.rbd.csi.ceph.com
|
||||
parameters:
|
||||
clusterID: {{ .Release.Namespace }}
|
||||
|
||||
@@ -403,6 +403,8 @@ cephFileSystemVolumeSnapshotClass:
|
||||
name: ceph-filesystem
|
||||
isDefault: true
|
||||
deletionPolicy: Delete
|
||||
annotations: {}
|
||||
labels: {}
|
||||
# see https://rook.io/docs/rook/latest/ceph-csi-snapshot.html#cephfs-snapshots for available configuration
|
||||
parameters: {}
|
||||
|
||||
@@ -411,6 +413,8 @@ cephBlockPoolsVolumeSnapshotClass:
|
||||
name: ceph-block
|
||||
isDefault: false
|
||||
deletionPolicy: Delete
|
||||
annotations: {}
|
||||
labels: {}
|
||||
# see https://rook.io/docs/rook/latest/ceph-csi-snapshot.html#rbd-snapshots for available configuration
|
||||
parameters: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user