From 07b355187bb6553ff1919c9cd55b64a35457e83c Mon Sep 17 00:00:00 2001 From: Lukas Reining Date: Fri, 15 Nov 2024 15:04:31 +0100 Subject: [PATCH] fix: mount persistence PVC into migration (#185) * fix: mounts the persistent volume claim for SqLite persistence into the migration job * fix: update chart version --- charts/flipt/Chart.yaml | 2 +- charts/flipt/templates/migration_job.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/charts/flipt/Chart.yaml b/charts/flipt/Chart.yaml index a072fa0..dedf76f 100644 --- a/charts/flipt/Chart.yaml +++ b/charts/flipt/Chart.yaml @@ -3,7 +3,7 @@ name: flipt home: https://flipt.io description: Flipt is an open-source, self-hosted feature flag solution. type: application -version: 0.73.0 +version: 0.73.1 appVersion: v1.51.1 maintainers: - name: Flipt diff --git a/charts/flipt/templates/migration_job.yaml b/charts/flipt/templates/migration_job.yaml index 29972d4..8a48097 100644 --- a/charts/flipt/templates/migration_job.yaml +++ b/charts/flipt/templates/migration_job.yaml @@ -51,6 +51,8 @@ spec: mountPath: /etc/flipt/config/default.yml readOnly: true subPath: default.yml + - name: flipt-data + mountPath: /var/opt/flipt resources: {{- toYaml .Values.resources | nindent 12 }} volumes: @@ -59,6 +61,13 @@ spec: - name: flipt-config configMap: name: {{ include "flipt.fullname" . }} + - name: flipt-data + {{- if .Values.persistence.enabled }} + persistentVolumeClaim: + claimName: {{ default (include "flipt.fullname" .) .Values.persistence.existingClaim }} + {{- else }} + emptyDir: { } + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}