2ff7ab8d40
* add snapshot-controller and v1beta1 snapshot api * fix typo * udpate manifest to v1beta1 * update * update manifests * fix spelling * wait until crd is applied * fix missing info in kube module * revert snapshotclass * add snapshot crds before applying the csi driver * add crds, missed them in last commit * use pull policy from kubespray
13 lines
403 B
Django/Jinja
13 lines
403 B
Django/Jinja
{% for class in snapshot_classes %}
|
|
---
|
|
kind: VolumeSnapshotClass
|
|
apiVersion: snapshot.storage.k8s.io/v1beta1
|
|
metadata:
|
|
name: "{{ class.name }}"
|
|
annotations:
|
|
storageclass.kubernetes.io/is-default-class: "{{ class.is_default | default(false) | ternary("true","false") }}"
|
|
driver: cinder.csi.openstack.org
|
|
deletionPolicy: Delete
|
|
parameters:
|
|
force-create: "{{ class.force_create }}"
|
|
{% endfor %}
|