Skip to content

Commit 639c320

Browse files
authored
Probes can be disabled in Helm chart (#7663)
1 parent 6529949 commit 639c320

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

ci/helm-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 3.32.0
18+
version: 3.32.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

ci/helm-chart/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,18 @@ spec:
123123
containerPort: {{ .port }}
124124
protocol: {{ .protocol }}
125125
{{- end }}
126+
{{- if ne .Values.livenessProbe.enabled false }}
126127
livenessProbe:
127128
httpGet:
128129
path: /healthz
129130
port: http
131+
{{- end }}
132+
{{- if ne .Values.readinessProbe.enabled false }}
130133
readinessProbe:
131134
httpGet:
132135
path: /healthz
133136
port: http
137+
{{- end }}
134138
resources:
135139
{{- toYaml .Values.resources | nindent 12 }}
136140
{{- with .Values.nodeSelector }}

ci/helm-chart/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ resources: {}
111111
# cpu: 100m
112112
# memory: 1000Mi
113113

114+
livenessProbe:
115+
enabled: true
116+
117+
readinessProbe:
118+
enabled: true
119+
114120
nodeSelector: {}
115121

116122
tolerations: []

0 commit comments

Comments
 (0)