Skip to content

Commit

Permalink
Added backoffLimit and restartPolicy
Browse files Browse the repository at this point in the history
Makefile for template & test
  • Loading branch information
tammert committed May 28, 2021
1 parent 58008da commit c33c1ef
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion replicant/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: Official Helm chart for Replicant

type: application

version: 0.3.2
version: 0.3.3
appVersion: "v0.3.0"
7 changes: 7 additions & 0 deletions replicant/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: template
template:
helm template -f values.yaml replicant ./

.PHONY: template-test
template-test:
helm template -f values.yaml replicant ./ | kubectl apply -f- --dry-run=server
3 changes: 2 additions & 1 deletion replicant/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ spec:
labels:
{{- include "replicant.labels" . | nindent 8 }}
spec:
backoffLimit: {{ default 2 .Values.backoffLimit }}
template:
metadata:
labels:
{{- include "replicant.labels" . | nindent 12 }}
spec:
serviceAccountName: {{ include "replicant.serviceAccountName" . }}
restartPolicy: Never
restartPolicy: {{ default "Never" .Values.restartPolicy }}
containers:
- name: {{ include "replicant.name" . }}
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
Expand Down
2 changes: 2 additions & 0 deletions replicant/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
cronSchedule: "0 0 * * *"
#backoffLimit: 6
#restartPolicy: OnFailure

image:
registry: docker.io
Expand Down

0 comments on commit c33c1ef

Please sign in to comment.