|
|
@ -5,8 +5,7 @@ metadata: |
|
|
|
labels: |
|
|
|
{{- include "mail-mta-autoconfig.labels" . | nindent 4 }} |
|
|
|
spec: |
|
|
|
# generate a random backup time between 1 and 5 AM |
|
|
|
schedule: {{ .Values.schedule }} |
|
|
|
schedule: "{{ .Values.schedule }}" |
|
|
|
concurrencyPolicy: Forbid |
|
|
|
jobTemplate: |
|
|
|
spec: |
|
|
@ -27,7 +26,17 @@ spec: |
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|
|
|
command: [ "python3", "watch.py" ] |
|
|
|
restartPolicy: OnFailure |
|
|
|
{{ if .Values.secretName }} |
|
|
|
volumeMounts: |
|
|
|
- mountPath: "/root/.env" |
|
|
|
name: envfile |
|
|
|
subPath: .env |
|
|
|
readOnly: true |
|
|
|
volumes: |
|
|
|
- name: envfile |
|
|
|
secret: |
|
|
|
secretName: {{ .Values.secretName }} |
|
|
|
{{ end }} |
|
|
|
{{- with .Values.nodeSelector }} |
|
|
|
nodeSelector: |
|
|
|
{{- toYaml . | nindent 12 }} |
|
|
|