From 532e97c5428542a0ac0f3d8d27827806654a1c2e Mon Sep 17 00:00:00 2001 From: elementyang Date: Fri, 28 Dec 2018 14:23:19 +0800 Subject: [PATCH] fix registry_storage_class equals empty string --- roles/kubernetes-apps/registry/templates/registry-rs.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/registry/templates/registry-rs.yml.j2 b/roles/kubernetes-apps/registry/templates/registry-rs.yml.j2 index ac6a0dfda..df3bed9d7 100644 --- a/roles/kubernetes-apps/registry/templates/registry-rs.yml.j2 +++ b/roles/kubernetes-apps/registry/templates/registry-rs.yml.j2 @@ -44,7 +44,7 @@ spec: protocol: TCP volumes: - name: registry-pvc -{% if registry_storage_class != none %} +{% if registry_storage_class != "" %} persistentVolumeClaim: claimName: registry-pvc {% else %}