Skip to content

Volume Snapshot Class

Appears in

  • .Values.volumeSnapshotClass

volumeSnapshotClass

Define a volume snapshot class

KeyvolumeSnapshotClass
Typemap
Required
Helm tpl
Default{}

Example

volumeSnapshotClass: {}

$name

Define a volume snapshot class

KeyvolumeSnapshotClass.$name
Typemap
Required
Helm tpl
Default{}

Example

volumeSnapshotClass:
example1: {}

labels

Define the labels of the volume snapshot class

KeyvolumeSnapshotClass.$name.labels
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

volumeSnapshotClass:
example1:
labels:
key: value

annotations

Define the annotations of the volume snapshot class

KeyvolumeSnapshotClass.$name.annotations
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

volumeSnapshotClass:
example1:
annotations:
key: value

enabled

Enable volume snapshot class

KeyvolumeSnapshotClass.$name.enabled
Typebool
Required
Helm tpl
Defaultfalse

Example

volumeSnapshotClass:
example1:
enabled: true

isDefault

Sets the annotation snapshot.storage.kubernetes.io/is-default-class to "true" or "false"

KeyvolumeSnapshotClass.$name.isDefault
Typebool
Required
Helm tpl
Defaultfalse

Example

volumeSnapshotClass:
example1:
isDefault: true

driver

Define the driver of the volume snapshot class

KeyvolumeSnapshotClass.$name.driver
Typestring
Required
Helm tpl
Default""

Example

volumeSnapshotClass:
example1:
driver: csi-hostpath-snapshots

deletionPolicy

Define the deletion policy of the volume snapshot class

KeyvolumeSnapshotClass.$name.deletionPolicy
Typestring
Required
Helm tpl
DefaultRetain

Example

volumeSnapshotClass:
example1:
deletionPolicy: Delete

parameters

Define the parameters of the volume snapshot class

KeyvolumeSnapshotClass.$name.parameters
Typemap
Required
Helm tpl✅ (On both key and value)
Default{}

Example

volumeSnapshotClass:
example1:
parameters:
key: value

Full Examples

volumeSnapshotClass:
class1:
enabled: true
driver: csi-hostpath-snapshots
deletionPolicy: Delete
labels:
label1: "{{ .Values.label1 }}"
label2: label2
annotations:
annotation1: "{{ .Values.annotation1 }}"
annotation2: annotation2
class2:
enabled: true
isDefault: true
driver: "{{ .Values.some_driver }}"
labels:
label1: "{{ .Values.label1 }}"
label2: label2
annotations:
annotation1: "{{ .Values.annotation1 }}"
annotation2: annotation2
parameters:
"{{ .Values.some_key }}": "{{ .Values.some_value }}"
parameter2: 5