Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mount persistence PVC into migration #185

Merged
merged 3 commits into from
Nov 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading