Skip to content

Commit

Permalink
fix: mount persistence PVC into migration (#185)
Browse files Browse the repository at this point in the history
* fix: mounts the persistent volume claim for SqLite persistence into the migration job

* fix: update chart version
  • Loading branch information
lukas-reining authored Nov 15, 2024
1 parent 9e9a0f9 commit 07b3551
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/flipt/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions charts/flipt/templates/migration_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit 07b3551

Please sign in to comment.