From b4e8b853e1833e756f9ce89af16c9ef89f9f1132 Mon Sep 17 00:00:00 2001 From: Bachir Berrachedi Date: Wed, 15 May 2024 15:30:57 -0500 Subject: [PATCH 1/2] support configuration of ndots --- charts/pega/templates/_helpers.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/charts/pega/templates/_helpers.tpl b/charts/pega/templates/_helpers.tpl index bc9798305..b636f590c 100644 --- a/charts/pega/templates/_helpers.tpl +++ b/charts/pega/templates/_helpers.tpl @@ -361,6 +361,11 @@ true dnsConfig: searches: - {{ .Values.global.privateHostedZoneDomainName }} +{{ if (.Values.global.serviceDNSPolicyNdots) }} + options: + - name: ndots + value: {{ .Values.global.serviceDNSPolicyNdots }} + {{- end }} {{- end }} {{- end }} From e520520d758e8d6f5fc4fbeac27d71427cd9beaf Mon Sep 17 00:00:00 2001 From: Bachir Berrachedi Date: Fri, 17 May 2024 17:00:20 -0500 Subject: [PATCH 2/2] quote ndots to avoid json unmarshall error --- charts/pega/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/pega/templates/_helpers.tpl b/charts/pega/templates/_helpers.tpl index b636f590c..5f3597921 100644 --- a/charts/pega/templates/_helpers.tpl +++ b/charts/pega/templates/_helpers.tpl @@ -364,7 +364,7 @@ dnsConfig: {{ if (.Values.global.serviceDNSPolicyNdots) }} options: - name: ndots - value: {{ .Values.global.serviceDNSPolicyNdots }} + value: {{ .Values.global.serviceDNSPolicyNdots | quote }} {{- end }} {{- end }} {{- end }}