2022-04-18 11:30:35 -04:00
|
|
|
{{- include "common.values.setup" . }}
|
2022-04-18 11:11:33 -04:00
|
|
|
---
|
|
|
|
|
apiVersion: "batch/v1"
|
|
|
|
|
kind: "CronJob"
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ include "common.names.fullname" . }}
|
|
|
|
|
labels:
|
|
|
|
|
{{- include "common.labels" . | nindent 4 }}
|
|
|
|
|
{{- with .Values.controller.labels }}
|
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- with .Values.controller.annotations }}
|
|
|
|
|
annotations:
|
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
spec:
|
|
|
|
|
schedule: {{ .Values.cronjob.schedule }}
|
|
|
|
|
concurrencyPolicy: {{ .Values.cronjob.concurrencyPolicy }}
|
|
|
|
|
successfulJobsHistoryLimit: {{ .Values.cronjob.successfulJobsHistoryLimit }}
|
|
|
|
|
failedJobsHistoryLimit: {{ .Values.cronjob.failedJobsHistoryLimit }}
|
|
|
|
|
jobTemplate:
|
|
|
|
|
spec:
|
|
|
|
|
backoffLimit: 0
|
|
|
|
|
template:
|
|
|
|
|
spec:
|
2022-04-18 11:40:43 -04:00
|
|
|
restartPolicy: Never
|
2022-04-18 11:11:33 -04:00
|
|
|
containers:
|
2022-04-18 11:25:46 -04:00
|
|
|
- name: {{ include "common.names.fullname" . }}
|
|
|
|
|
image: {{ printf "%s:%s" .Values.image.repository (default .Chart.AppVersion .Values.image.tag) | quote }}
|
2022-04-18 11:36:10 -04:00
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|