From 0f43e4ccffbadd954a77a67f69952e3886dd3707 Mon Sep 17 00:00:00 2001 From: Philipp Bandow Date: Tue, 7 Feb 2023 18:25:44 +0100 Subject: [PATCH] Fix condition bug introduced in #29 Add introduced parameter to values.yaml --- templates/mq.yaml | 4 ++-- values.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/mq.yaml b/templates/mq.yaml index 73d2cd3..59ca685 100644 --- a/templates/mq.yaml +++ b/templates/mq.yaml @@ -85,9 +85,9 @@ spec: name: wait-script - name: shared-data persistentVolumeClaim: - {{- if not .Values.mq.existingClaim }} + {{- if .Values.mq.existingClaim }} claimName: {{ .Values.mq.existingClaim }} - {{- else }} + {{- else }} claimName: {{ include "netmaker.fullname" . }}-shared-data-pvc {{- end }} --- diff --git a/values.yaml b/values.yaml index 892a38a..86fa251 100644 --- a/values.yaml +++ b/values.yaml @@ -44,6 +44,8 @@ mq: singlenode: false storageSize: 128Mi password: 3yyerWGdds43yegGR + # -- existing claim for shared-data PVC + # existingClaim: "" RWX: storageClassName: ""