Skip to content

Commit 819bf21

Browse files
committed
exclude probes in debug mode
1 parent e19837d commit 819bf21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

charts/gitops-runtime/templates/_components/gitops-operator/_deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ spec:
6565
containerPort: 8080
6666
- name: http-health
6767
containerPort: 8081
68+
{{- if not .Values.debug.enabled }}
6869
readinessProbe:
6970
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
7071
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
@@ -83,6 +84,7 @@ spec:
8384
httpGet:
8485
port: http-health
8586
path: /healthz
87+
{{- end }}
8688
resources:
8789
{{- toYaml .Values.resources | nindent 12 }}
8890
volumeMounts:

0 commit comments

Comments
 (0)