Skip to content

Commit 07b3551

Browse files
fix: mount persistence PVC into migration (#185)
* fix: mounts the persistent volume claim for SqLite persistence into the migration job * fix: update chart version
1 parent 9e9a0f9 commit 07b3551

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

charts/flipt/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: flipt
33
home: https://flipt.io
44
description: Flipt is an open-source, self-hosted feature flag solution.
55
type: application
6-
version: 0.73.0
6+
version: 0.73.1
77
appVersion: v1.51.1
88
maintainers:
99
- name: Flipt

charts/flipt/templates/migration_job.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ spec:
5151
mountPath: /etc/flipt/config/default.yml
5252
readOnly: true
5353
subPath: default.yml
54+
- name: flipt-data
55+
mountPath: /var/opt/flipt
5456
resources:
5557
{{- toYaml .Values.resources | nindent 12 }}
5658
volumes:
@@ -59,6 +61,13 @@ spec:
5961
- name: flipt-config
6062
configMap:
6163
name: {{ include "flipt.fullname" . }}
64+
- name: flipt-data
65+
{{- if .Values.persistence.enabled }}
66+
persistentVolumeClaim:
67+
claimName: {{ default (include "flipt.fullname" .) .Values.persistence.existingClaim }}
68+
{{- else }}
69+
emptyDir: { }
70+
{{- end }}
6271
{{- with .Values.nodeSelector }}
6372
nodeSelector:
6473
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)