1
0
Fork 0
This repository has been archived on 2025-09-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
wsj-discord-standup-notific.../deploy/charts/wsj-standup/templates/job.yaml
Vojtěch Mareš d548d67b43 refactor: rename chart to charts [ci skip]
it is common practice to name the folder charts even though there is only one helm chart
2022-06-19 10:57:28 +00:00

28 lines
957 B
YAML

apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ include "wsj-standup.fullname" . }}-job
spec:
schedule: "0 8 * * 1"
jobTemplate:
spec:
backoffLimit: 4
activeDeadlineSeconds: 10
ttlSecondsAfterFinished: 300
template:
spec:
{{- if .Values.image.pullSecretBase64 }}
imagePullSecrets:
- name: {{ include "wsj-standup.fullname" . }}-registry-credentials
{{- end }}
serviceAccountName: {{ include "wsj-standup.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{- toYaml .Values.resources | nindent 14 }}
envFrom:
- configMapRef:
name: {{ include "wsj-standup.fullname" . }}-config
restartPolicy: OnFailure