diff --git a/molgenis/templates/deployment.yaml b/molgenis/templates/deployment.yaml index 7895b0d..0205efb 100644 --- a/molgenis/templates/deployment.yaml +++ b/molgenis/templates/deployment.yaml @@ -68,11 +68,11 @@ spec: periodSeconds: 5 resources: {{ toYaml .resources | indent 12 }} - {{- if .persistence.enabled }} + {{- if .persistence.enabled -}} volumes: - - name: molgenis-nfs - persistentVolumeClaim: - claimName: {{ .persistence.name }} + - name: molgenis-nfs + persistentVolumeClaim: + claimName: {{ .persistence.name }} {{- end }} {{- end }} diff --git a/molgenis/templates/persistence/molgenisPVC.yaml b/molgenis/templates/persistence/molgenisPVC.yaml index 1ae03f0..a10d9de 100644 --- a/molgenis/templates/persistence/molgenisPVC.yaml +++ b/molgenis/templates/persistence/molgenisPVC.yaml @@ -1,4 +1,4 @@ -{{- if .Values.molgenis.persistence.enabled }} +{{- if .Values.molgenis.persistence.enabled -}} apiVersion: extensions/v1beta1 kind: PersistentVolumeClaim apiVersion: v1