Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
himaster committed Oct 9, 2024
1 parent 344c63d commit 2984753
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 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.2.1
version: 1.2.2
15 changes: 10 additions & 5 deletions app/templates/migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ spec:
{{- end }}
spec:
restartPolicy: Never
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
- name: {{ include "project.fullname" . }}-gcr-json-key
{{- if .Values.image.imagePullSecrets }}
{{- toYaml .Values.image.imagePullSecrets | nindent 8 }}
{{- end }}
{{- end }}
{{- if gt (len .Values.hostAliases) 0 }}
hostAliases:
{{- range $ip, $hosts := .Values.hostAliases }}
Expand All @@ -43,6 +42,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if or .Values.additionalSecretVolumes .Values.additionalExternalSecretVolumes }}
volumes:
{{- range .Values.additionalSecretVolumes }}
- name: {{ lower .name }}
Expand All @@ -63,12 +63,16 @@ spec:
secretName: {{ .name }}
{{- end }}
{{- end }}
{{- end }}
containers:
- name: app
image: "{{ .Values.image.repository }}"
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
image: {{ .Values.image.repository }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
{{- if or .Values.additionalSecretVolumes .Values.additionalExternalSecretVolumes }}
volumeMounts:
{{- range .Values.additionalSecretVolumes }}
- name: {{ lower .name }}
Expand Down Expand Up @@ -103,6 +107,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.env }}
env:
{{- range .Values.env }}
Expand Down
2 changes: 1 addition & 1 deletion app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ migration:
enabled: false

# -- Configures migration command
command: ""
command: "command.sh"

appReadinessProbe:
# -- Enables [readiness probe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes) for app container
Expand Down

0 comments on commit 2984753

Please sign in to comment.