From 661b6e54419959b1a03ce4ec0259f5ca31e578b4 Mon Sep 17 00:00:00 2001 From: Kanzal Qalandri Date: Tue, 12 Nov 2024 00:08:47 +0500 Subject: [PATCH 1/2] Add Missing caSecret in Helm Template Signed-off-by: Kanzal Qalandri --- .../templates/opensearch-cluster-cr.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml b/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml index 79f3b70b..38528117 100644 --- a/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml +++ b/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml @@ -333,6 +333,10 @@ spec: name: {{ .Values.opensearchCluster.security.tls.transport.secret.name }} {{- end }} {{- if .Values.opensearchCluster.security.tls.transport.adminDn }} + {{- if .Values.opensearchCluster.security.tls.transport.caSecret }} + caSecret: + name: {{ .Values.opensearchCluster.security.tls.transport.caSecret.name }} + {{- end }} adminDn: {{ toYaml .Values.opensearchCluster.security.tls.transport.adminDn | nindent 10 }} {{- end }} @@ -350,6 +354,10 @@ spec: secret: name: {{ .Values.opensearchCluster.security.tls.http.secret.name }} {{- end }} + {{- if .Values.opensearchCluster.security.tls.http.caSecret }} + caSecret: + name: {{ .Values.opensearchCluster.security.tls.http.caSecret.name }} + {{- end }} {{- end }} {{- end }} {{- end }} From 58bec625a1ab664dfdb765edf019f8253d03395c Mon Sep 17 00:00:00 2001 From: Kanzal Qalandri Date: Tue, 12 Nov 2024 00:23:26 +0500 Subject: [PATCH 2/2] fixed line numbers Signed-off-by: Kanzal Qalandri --- charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml b/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml index 38528117..4e5b2fd1 100644 --- a/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml +++ b/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml @@ -332,11 +332,11 @@ spec: secret: name: {{ .Values.opensearchCluster.security.tls.transport.secret.name }} {{- end }} - {{- if .Values.opensearchCluster.security.tls.transport.adminDn }} {{- if .Values.opensearchCluster.security.tls.transport.caSecret }} caSecret: name: {{ .Values.opensearchCluster.security.tls.transport.caSecret.name }} {{- end }} + {{- if .Values.opensearchCluster.security.tls.transport.adminDn }} adminDn: {{ toYaml .Values.opensearchCluster.security.tls.transport.adminDn | nindent 10 }} {{- end }}