From 6c8c1be516570397801eb5cee6b2bf36dff0c178 Mon Sep 17 00:00:00 2001 From: dzmuda Date: Thu, 21 Jun 2018 23:48:42 +0200 Subject: [PATCH] Addition of liveness probe template parameters in Kafka StatefulSet (#6220) * Addition of liveness probe template parameters in Kafka StatefulSet * Kafka: Version bump --- incubator/kafka/Chart.yaml | 2 +- incubator/kafka/templates/statefulset.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/incubator/kafka/Chart.yaml b/incubator/kafka/Chart.yaml index e115a55a98..e207b4bd52 100755 --- a/incubator/kafka/Chart.yaml +++ b/incubator/kafka/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 description: Apache Kafka is publish-subscribe messaging rethought as a distributed commit log. name: kafka -version: 0.7.4 +version: 0.7.5 appVersion: 4.0.1 keywords: - kafka diff --git a/incubator/kafka/templates/statefulset.yaml b/incubator/kafka/templates/statefulset.yaml index 458518a358..5448ec4bba 100644 --- a/incubator/kafka/templates/statefulset.yaml +++ b/incubator/kafka/templates/statefulset.yaml @@ -94,8 +94,22 @@ spec: - sh - -ec - /usr/bin/jps | /bin/grep -q SupportedKafka + {{- if not .Values.livenessProbe }} initialDelaySeconds: 30 timeoutSeconds: 5 + {{- else }} + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 30}} + {{- if .Values.livenessProbe.periodSeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + {{- end }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds | default 5}} + {{- if .Values.livenessProbe.successThreshold }} + successThreshold: {{ .Values.livenessProbe.successThreshold }} + {{- end }} + {{- if .Values.livenessProbe.failureThreshold }} + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} + {{- end }} + {{- end }} readinessProbe: tcpSocket: port: kafka