From 827660c7209b22cb7ec987587b45b8dca6103f3d Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Thu, 28 Sep 2023 14:31:30 +0530 Subject: [PATCH] fix termination Signed-off-by: Shubham Gupta --- charts/redis-cluster/templates/redis-cluster.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/redis-cluster/templates/redis-cluster.yaml b/charts/redis-cluster/templates/redis-cluster.yaml index 7ff82201..bf5e447b 100644 --- a/charts/redis-cluster/templates/redis-cluster.yaml +++ b/charts/redis-cluster/templates/redis-cluster.yaml @@ -77,7 +77,7 @@ spec: securityContext: {{- toYaml .Values.redisCluster.leader.securityContext | nindent 2 }} {{- end }} {{- end }} -{{- if ne .Values.redisCluster.leader.terminationGracePeriodSeconds 0 }} +{{- if ne (int .Values.redisCluster.leader.terminationGracePeriodSeconds) 0 }} terminationGracePeriodSeconds: {{ .Values.redisCluster.leader.terminationGracePeriodSeconds }} {{- end }} # Redis Follower Specs @@ -137,7 +137,7 @@ spec: securityContext: {{- toYaml .Values.redisCluster.follower.securityContext | nindent 2 }} {{- end }} {{- end }} -{{- if ne .Values.redisCluster.follower.terminationGracePeriodSeconds 0 }} +{{- if ne (int .Values.redisCluster.follower.terminationGracePeriodSeconds) 0 }} terminationGracePeriodSeconds: {{ .Values.redisCluster.follower.terminationGracePeriodSeconds }} {{- end }} # Redis Exporter Specs