From 8a87682a55b81283751a11ef936d087e7138d7f1 Mon Sep 17 00:00:00 2001 From: Rajesh M <10219439+rajeshm90@users.noreply.github.com> Date: Mon, 13 Jan 2025 23:48:43 +0530 Subject: [PATCH] Fixed the duplicate key entries Duplicate keys under general and dashboards in opensearch-cluster helm chart is removed. Signed-off-by: Rajesh M <10219439+rajeshm90@users.noreply.github.com> --- charts/opensearch-cluster/templates/cluster.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/opensearch-cluster/templates/cluster.yaml b/charts/opensearch-cluster/templates/cluster.yaml index 882d0f05..f62a310e 100644 --- a/charts/opensearch-cluster/templates/cluster.yaml +++ b/charts/opensearch-cluster/templates/cluster.yaml @@ -17,12 +17,12 @@ spec: {{- end }} {{- with .Values.cluster.dashboards }} dashboards: - {{- . | toYaml | nindent 4 }} + {{- omit . "image" | toYaml | nindent 4 }} image: {{ .image }}:{{ .version }} {{- end }} {{- with .Values.cluster.general }} general: - {{- . | toYaml | nindent 4 }} + {{- omit . "image" "serviceName" | toYaml | nindent 4 }} image: {{ .image }}:{{ .version }} serviceName: {{ .serviceName | default $clusterName }} {{- end }}