Add options to pre-install job

This commit is contained in:
David Burke 2022-11-29 20:56:01 -05:00
parent ccfcb1bc23
commit 788906385b
2 changed files with 7 additions and 1 deletions

View file

@ -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 }}

View file

@ -11,6 +11,10 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
preInstall:
enabled: true
activeDeadlineSeconds: 900
env:
normal: {}
secret: {}