refactor: rename wsj-standup to wsj-drink (safe to do, this is a fork)
- forked - renamed the helm chart
This commit is contained in:
parent
bc197a9fd0
commit
a39cc7ff89
9 changed files with 22 additions and 22 deletions
28
deploy/charts/wsj-drink/templates/job.yaml
Normal file
28
deploy/charts/wsj-drink/templates/job.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: {{ include "wsj-drink.fullname" . }}-job
|
||||
spec:
|
||||
schedule: "0 7-21 * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
backoffLimit: 4
|
||||
activeDeadlineSeconds: 10
|
||||
ttlSecondsAfterFinished: 300
|
||||
template:
|
||||
spec:
|
||||
{{- if .Values.image.pullSecretBase64 }}
|
||||
imagePullSecrets:
|
||||
- name: {{ include "wsj-drink.fullname" . }}-registry-credentials
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "wsj-drink.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-drink.fullname" . }}-config
|
||||
restartPolicy: OnFailure
|
||||
Reference in a new issue