From 57eaf896b786001c7486d26805249a71c05c6516 Mon Sep 17 00:00:00 2001 From: nueavv Date: Mon, 12 Aug 2024 19:31:57 +0900 Subject: [PATCH] fix enabling notification probes Signed-off-by: nueavv --- charts/argo-cd/templates/argocd-notifications/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/argo-cd/templates/argocd-notifications/deployment.yaml b/charts/argo-cd/templates/argocd-notifications/deployment.yaml index 8b7cefb3..0f6ad38b 100644 --- a/charts/argo-cd/templates/argocd-notifications/deployment.yaml +++ b/charts/argo-cd/templates/argocd-notifications/deployment.yaml @@ -107,6 +107,7 @@ spec: - name: metrics containerPort: {{ .Values.notifications.containerPorts.metrics }} protocol: TCP + {{- if .Values.notifications.livenessProbe.enabled }} livenessProbe: tcpSocket: port: metrics @@ -115,6 +116,8 @@ spec: timeoutSeconds: {{ .Values.notifications.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.notifications.livenessProbe.successThreshold }} failureThreshold: {{ .Values.notifications.livenessProbe.failureThreshold }} + {{- end }} + {{- if .Values.notifications.readinessProbe.enabled }} readinessProbe: tcpSocket: port: metrics @@ -123,6 +126,7 @@ spec: timeoutSeconds: {{ .Values.notifications.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.notifications.readinessProbe.successThreshold }} failureThreshold: {{ .Values.notifications.readinessProbe.failureThreshold }} + {{- end }} resources: {{- toYaml .Values.notifications.resources | nindent 12 }} {{- with .Values.notifications.containerSecurityContext }}