From c779ad175054bc352359c06cae2aff38da0df397 Mon Sep 17 00:00:00 2001 From: Kavinraja-G Date: Mon, 2 Jan 2023 14:41:49 +0530 Subject: [PATCH] Fix boolean dataType issue with labels --- charts/redisoperator/templates/_helpers.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/redisoperator/templates/_helpers.tpl b/charts/redisoperator/templates/_helpers.tpl index 180bcc4dd..6c8ea6799 100644 --- a/charts/redisoperator/templates/_helpers.tpl +++ b/charts/redisoperator/templates/_helpers.tpl @@ -45,8 +45,8 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/part-of: {{ include "chart.name" . }} -{{- range $k, $v := .Values.labels }} -{{ $k }}: {{ $v }} +{{- if .Values.labels}} +{{ toYaml .Values.labels }} {{- end }} {{- end -}}