Skip to content

Commit c3eae34

Browse files
kiblikrossops
andauthored
fix(helm): Drop initialDelaySeconds if empty (#13398)
Co-authored-by: Ross E Esposito <[email protected]>
1 parent 2ae7490 commit c3eae34

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

helm/defectdojo/Chart.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,7 @@ annotations:
3535
# description: Critical bug
3636
artifacthub.io/prerelease: "true"
3737
artifacthub.io/changes: |
38+
- kind: fixed
39+
description: Drop initialDelaySeconds if eq. zero
3840
- kind: added
3941
description: Add support for automountServiceAccountToken

helm/defectdojo/templates/django-deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ spec:
225225
- name: Host
226226
value: {{ .Values.host }}
227227
failureThreshold: {{ .Values.django.uwsgi.livenessProbe.failureThreshold }}
228+
{{- if .Values.django.uwsgi.livenessProbe.initialDelaySeconds }}
228229
initialDelaySeconds: {{ .Values.django.uwsgi.livenessProbe.initialDelaySeconds }}
230+
{{- end }}
229231
periodSeconds: {{ .Values.django.uwsgi.livenessProbe.periodSeconds }}
230232
successThreshold: {{ .Values.django.uwsgi.livenessProbe.successThreshold }}
231233
timeoutSeconds: {{ .Values.django.uwsgi.livenessProbe.timeoutSeconds }}
@@ -284,7 +286,9 @@ spec:
284286
- name: Host
285287
value: {{ .Values.host }}
286288
failureThreshold: {{ .Values.django.uwsgi.livenessProbe.failureThreshold }}
289+
{{- if .Values.django.uwsgi.livenessProbe.initialDelaySeconds }}
287290
initialDelaySeconds: {{ .Values.django.uwsgi.livenessProbe.initialDelaySeconds }}
291+
{{- end }}
288292
periodSeconds: {{ .Values.django.uwsgi.livenessProbe.periodSeconds }}
289293
successThreshold: {{ .Values.django.uwsgi.livenessProbe.successThreshold }}
290294
timeoutSeconds: {{ .Values.django.uwsgi.livenessProbe.timeoutSeconds }}
@@ -301,7 +305,9 @@ spec:
301305
- name: Host
302306
value: {{ .Values.host }}
303307
failureThreshold: {{ .Values.django.uwsgi.readinessProbe.failureThreshold }}
308+
{{- if .Values.django.uwsgi.readinessProbe.initialDelaySeconds }}
304309
initialDelaySeconds: {{ .Values.django.uwsgi.readinessProbe.initialDelaySeconds }}
310+
{{- end }}
305311
periodSeconds: {{ .Values.django.uwsgi.readinessProbe.periodSeconds }}
306312
successThreshold: {{ .Values.django.uwsgi.readinessProbe.successThreshold }}
307313
timeoutSeconds: {{ .Values.django.uwsgi.readinessProbe.timeoutSeconds }}
@@ -318,7 +324,9 @@ spec:
318324
- name: Host
319325
value: {{ .Values.host }}
320326
failureThreshold: {{ .Values.django.uwsgi.startupProbe.failureThreshold }}
327+
{{- if .Values.django.uwsgi.startupProbe.initialDelaySeconds }}
321328
initialDelaySeconds: {{ .Values.django.uwsgi.startupProbe.initialDelaySeconds }}
329+
{{- end }}
322330
periodSeconds: {{ .Values.django.uwsgi.startupProbe.periodSeconds }}
323331
successThreshold: {{ .Values.django.uwsgi.startupProbe.successThreshold }}
324332
timeoutSeconds: {{ .Values.django.uwsgi.startupProbe.timeoutSeconds }}

0 commit comments

Comments
 (0)