We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dba587 commit c947b0fCopy full SHA for c947b0f
hack/ensure-default-csi.sh
@@ -42,6 +42,20 @@ updateDefaultVolumeSnapshotClass() {
42
return 0
43
fi
44
done
45
+
46
+ # At this point no volume snapshot class was found that matches the driver - create one
47
+ echo "Creating VolumeStorageClass for ${DRIVER_TO_USE} driver ..."
48
+ kubectl create -f - <<SNAPCLASS
49
+apiVersion: snapshot.storage.k8s.io/v1
50
+kind: VolumeSnapshotClass
51
+metadata:
52
+ name: test-csi-snap
53
+ annotations:
54
+ snapshot.storage.kubernetes.io/is-default-class: "true"
55
+driver: ${DRIVER_TO_USE}
56
+deletionPolicy: Delete
57
+SNAPCLASS
58
59
}
60
61
# Log storageclasses and volumesnapshotclasses (for debug purposes)
0 commit comments