Skip to content

Commit

Permalink
add AdditionalPvc to migration
Browse files Browse the repository at this point in the history
  • Loading branch information
himaster committed Nov 12, 2024
1 parent 469ffa7 commit a4246a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ maintainers:
#
# NOTE: this value is set at build time. DO NOT CHANGE.
#
version: 1.3.3
version: 1.3.4
12 changes: 10 additions & 2 deletions app/templates/migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if or .Values.additionalSecretVolumes .Values.additionalExternalSecretVolumes }}
{{- if or .Values.additionalSecretVolumes .Values.additionalExternalSecretVolumes .Values.additionalPvc }}
volumes:
{{- range .Values.additionalSecretVolumes }}
- name: {{ lower .name }}
Expand All @@ -63,6 +63,10 @@ spec:
secretName: {{ .name }}
{{- end }}
{{- end }}
{{- range .Values.additionalPvc }}
- name: {{ lower .name }}
emptyDir: {}
{{- end }}
{{- end }}
containers:
- name: app
Expand All @@ -72,7 +76,7 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
{{- if or .Values.additionalSecretVolumes .Values.additionalExternalSecretVolumes }}
{{- if or .Values.additionalSecretVolumes .Values.additionalExternalSecretVolumes .Values.additionalPvc }}
volumeMounts:
{{- range .Values.additionalSecretVolumes }}
- name: {{ lower .name }}
Expand Down Expand Up @@ -107,6 +111,10 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- range .Values.additionalPvc }}
- name: {{ lower .name }}
mountPath: {{ .mountPath }}
{{- end }}
{{- end }}
{{- if .Values.env }}
env:
Expand Down

0 comments on commit a4246a8

Please sign in to comment.