Skip to content

Commit 8ae7791

Browse files
committed
support for older charts
1 parent f815841 commit 8ae7791

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/devtron-reference-helm-charts/cronjob-chart_1-6-0/templates/_pod_template_spec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ containers:
150150
{{- if $.Values.containerExtraSpecs }}
151151
{{ toYaml .Values.containerExtraSpecs | indent 4 }}
152152
{{- end }}
153+
{{- if $.Values.LivenessProbe }}
153154
{{- if or $.Values.LivenessProbe.Path $.Values.LivenessProbe.command $.Values.LivenessProbe.tcp $.Values.LivenessProbe.grpc }}
154155
livenessProbe:
155156
{{- if $.Values.LivenessProbe.Path }}
@@ -184,6 +185,8 @@ containers:
184185
{{ toYaml .Values.LivenessProbe.grpc | indent 14 }}
185186
{{- end }}
186187
{{- end }}
188+
{{- end }}
189+
{{- if $.Values.ReadinessProbe }}
187190
{{- if or $.Values.ReadinessProbe.Path $.Values.ReadinessProbe.command $.Values.ReadinessProbe.tcp $.Values.ReadinessProbe.grpc }}
188191
readinessProbe:
189192
{{- if $.Values.ReadinessProbe.Path }}
@@ -218,6 +221,7 @@ containers:
218221
{{ toYaml .Values.ReadinessProbe.grpc | indent 14 }}
219222
{{- end}}
220223
{{- end }}
224+
{{- end }}
221225

222226
{{- if $.Values.privileged }}
223227
securityContext:

scripts/devtron-reference-helm-charts/cronjob-chart_1-6-0/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ LivenessProbe:
4343
tcp: false
4444
timeoutSeconds: 5
4545
ReadinessProbe:
46-
Path: "/"
46+
Path: ""
4747
command: []
4848
failureThreshold: 3
4949
httpHeaders: []
@@ -346,4 +346,4 @@ imagePullSecrets: []
346346
# - test1
347347
# - test2
348348

349-
persistentVolumeClaim: {}
349+
persistentVolumeClaim: {}

0 commit comments

Comments
 (0)