feat(cinder-csi): Allow deletionPolicy to be configurable (#9736)

pull/9755/head
Kevin Huang 2023-02-03 00:46:28 +01:00 committed by GitHub
parent 9247137e60
commit 1853085ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -3,3 +3,4 @@ snapshot_classes:
- name: cinder-csi-snapshot
is_default: false
force_create: true
deletionPolicy: Delete

View File

@ -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 %}