refactor: rename chart to charts [ci skip]
it is common practice to name the folder charts even though there is only one helm chart
This commit is contained in:
parent
c1c93296bf
commit
d548d67b43
9 changed files with 1 additions and 1 deletions
28
deploy/charts/wsj-standup/templates/job.yaml
Normal file
28
deploy/charts/wsj-standup/templates/job.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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
|
||||
Reference in a new issue