Add fail close to mitigate breaking change on preInstall -> migrationJob
This commit is contained in:
parent
74288199f6
commit
126b55438a
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
{{- if .Values.preInstall -}}
|
||||||
|
{{- fail ".Values.preInstall was moved to .Values.migrationJob, update your values accordingly" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- if .Values.migrationJob.enabled -}}
|
{{- if .Values.migrationJob.enabled -}}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
|
@ -34,7 +38,7 @@ spec:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
{{- if .Values.migrationJob.resources }}
|
{{- if .Values.migrationJob.resources }}
|
||||||
resources: {{ toYaml .Values.migrationJob.resources | nindent 12 }}
|
resources: {{ toYaml .Values.migrationJob.resources | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command: {{ .Values.migrationJob.command | default (list "./manage.py" "migrate") | toJson }}
|
command: {{ .Values.migrationJob.command | default (list "./manage.py" "migrate") | toJson }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue