Add options to pre-install job
This commit is contained in:
parent
ccfcb1bc23
commit
788906385b
|
@ -1,3 +1,4 @@
|
|||
{{- if .Values.preInstall.enabled -}}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
|
@ -12,7 +13,7 @@ metadata:
|
|||
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||
tag: "{{ .Values.image.tag }}"
|
||||
spec:
|
||||
activeDeadlineSeconds: 600
|
||||
activeDeadlineSeconds: {{ default 900 .Values.preInstall.activeDeadlineSeconds }}
|
||||
template:
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
|
@ -48,3 +49,4 @@ spec:
|
|||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "django.fullname" . }}
|
||||
{{- end }}
|
||||
|
|
|
@ -11,6 +11,10 @@ imagePullSecrets: []
|
|||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
preInstall:
|
||||
enabled: true
|
||||
activeDeadlineSeconds: 900
|
||||
|
||||
env:
|
||||
normal: {}
|
||||
secret: {}
|
||||
|
|
Loading…
Reference in a new issue