From ba2107ea8c39fd2129ffc807119e247af4d6795d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20S=C3=B6derqvist?= Date: Thu, 15 Feb 2018 10:51:42 +0100 Subject: [PATCH] is-default-class is case sensative so we must return a lowercase string --- .../openstack/templates/openstack-storage-class.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/persistent_volumes/openstack/templates/openstack-storage-class.yml.j2 b/roles/kubernetes-apps/persistent_volumes/openstack/templates/openstack-storage-class.yml.j2 index 5b1f5caed..629c1f0a3 100644 --- a/roles/kubernetes-apps/persistent_volumes/openstack/templates/openstack-storage-class.yml.j2 +++ b/roles/kubernetes-apps/persistent_volumes/openstack/templates/openstack-storage-class.yml.j2 @@ -5,7 +5,7 @@ apiVersion: storage.k8s.io/v1 metadata: name: "{{ class.name }}" annotations: - storageclass.kubernetes.io/is-default-class: "{{ class.is_default | default(false) }}" + storageclass.kubernetes.io/is-default-class: "{{ class.is_default | default(false) | ternary("true","false") }}" provisioner: kubernetes.io/cinder parameters: {% for key, value in (class.parameters | default({})).items() %}