feat(cinder-csi): Allow deletionPolicy to be configurable (#9736)
parent
9247137e60
commit
1853085ffe
|
@ -3,3 +3,4 @@ snapshot_classes:
|
|||
- name: cinder-csi-snapshot
|
||||
is_default: false
|
||||
force_create: true
|
||||
deletionPolicy: Delete
|
||||
|
|
|
@ -7,7 +7,7 @@ metadata:
|
|||
annotations:
|
||||
storageclass.kubernetes.io/is-default-class: "{{ class.is_default | default(false) | ternary("true","false") }}"
|
||||
driver: cinder.csi.openstack.org
|
||||
deletionPolicy: Delete
|
||||
deletionPolicy: "{{ class.deletionPolicy | default("Delete") }}"
|
||||
parameters:
|
||||
force-create: "{{ class.force_create }}"
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue