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: corrected initContainers indentation and conditionals in Job migration YAML #68

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Changes from all commits
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
29 changes: 19 additions & 10 deletions templates/migrate-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,24 @@ spec:
spec:
restartPolicy: Never
initContainers:
{{ if .Values.postgresql.enabled }}
- name: wait-for-postgresql
image: "docker.io/bitnami/kubectl:{{ include "kubectlVersion" . }}"
args:
- wait
- pod/{{ .Release.Name }}-postgresql-0
- --for=condition=ready
- --timeout=180s
{{ end }}
{{- if .Values.postgresql.enabled }}
- name: wait-for-postgresql
image: "docker.io/bitnami/kubectl:{{ include "kubectlVersion" . }}"
args:
- wait
- pod/{{ .Release.Name }}-postgresql-0
- --for=condition=ready
- --timeout=180s
{{- end }}
{{- if .Values.redis.enabled }}
- name: wait-for-redis
image: "docker.io/bitnami/kubectl:{{ include "kubectlVersion" . }}"
args:
- wait
- pod/{{ .Release.Name }}-redis-master-0
- --for=condition=ready
- --timeout=180s
{{- end }}
containers:
- name: lago-migrate
image: getlago/api:v{{ .Values.version }}
Expand Down Expand Up @@ -64,6 +73,6 @@ spec:
key: secretKeyBase
{{- with .Values.job.migrate.resources }}
resources:
{{- toYaml . | nindent 12}}
{{- toYaml . | nindent 12 }}
{{- end }}
serviceAccountName: {{ .Values.global.serviceAccountName | default (printf "%s-serviceaccount" .Release.Name) }}
Loading