Browse Source

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

pull/9755/head
Kevin Huang 2 years ago
committed by GitHub
parent
commit
1853085ffe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions
  1. 1
      roles/kubernetes-apps/snapshots/cinder-csi/defaults/main.yml
  2. 2
      roles/kubernetes-apps/snapshots/cinder-csi/templates/cinder-csi-snapshot-class.yml.j2

1
roles/kubernetes-apps/snapshots/cinder-csi/defaults/main.yml

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

2
roles/kubernetes-apps/snapshots/cinder-csi/templates/cinder-csi-snapshot-class.yml.j2

@ -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…
Cancel
Save