This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new 6b7ab04 Fix fully-qualified dns name (#686)
6b7ab04 is described below
commit 6b7ab04a41f28da725f3a81cd8ce56536ab96713
Author: Shaun Becker <[email protected]>
AuthorDate: Mon May 18 08:25:38 2026 +0000
Fix fully-qualified dns name (#686)
* Fix fully-qualified dns name
* Update ci tests to use fully-qualified DNS name
* Retain wildcard certs so that hostname verification works for headless
services used for BK, ZK and broker statefulset pods
---------
Co-authored-by: Lari Hotari <[email protected]>
---
.ci/helm.sh | 8 ++++----
charts/pulsar/templates/_certs.tpl | 5 ++++-
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/.ci/helm.sh b/.ci/helm.sh
index 480c1df..c5303f2 100755
--- a/.ci/helm.sh
+++ b/.ci/helm.sh
@@ -341,14 +341,14 @@ function ci::test_pulsar_producer_consumer() {
echo "Testing with ${action}"
if [[ "$(ci::helm_values_for_deployment | yq .standalone.enabled)" ==
"true" ]]; then
if [[ "$(ci::helm_values_for_deployment | yq .tls.enabled)" == "true"
]]; then
- PROXY_URL="pulsar+ssl://pulsar-ci-standalone:6651"
+
PROXY_URL="pulsar+ssl://pulsar-ci-standalone.${NAMESPACE}.svc.cluster.local:6651"
else
- PROXY_URL="pulsar://pulsar-ci-standalone:6650"
+
PROXY_URL="pulsar://pulsar-ci-standalone.${NAMESPACE}.svc.cluster.local:6650"
fi
elif [[ "$(ci::helm_values_for_deployment | yq .tls.proxy.enabled)" ==
"true" ]]; then
- PROXY_URL="pulsar+ssl://pulsar-ci-proxy:6651"
+
PROXY_URL="pulsar+ssl://pulsar-ci-proxy.${NAMESPACE}.svc.cluster.local:6651"
else
- PROXY_URL="pulsar://pulsar-ci-proxy:6650"
+ PROXY_URL="pulsar://pulsar-ci-proxy.${NAMESPACE}.svc.cluster.local:6650"
fi
set -x
if [[ "${action}" == "produce" || "${action}" == "produce-consume" ]]; then
diff --git a/charts/pulsar/templates/_certs.tpl
b/charts/pulsar/templates/_certs.tpl
index ab79ea1..8462d90 100644
--- a/charts/pulsar/templates/_certs.tpl
+++ b/charts/pulsar/templates/_certs.tpl
@@ -108,8 +108,11 @@ spec:
{{- end }}
{{- if or (eq .componentConfig.component "broker") (eq
.componentConfig.component "zookeeper") }}
- {{ printf "*.%s-%s-headless.%s.svc.%s" (include "pulsar.fullname" .root)
.componentConfig.component (include "pulsar.namespace" .root)
.root.Values.clusterDomain | quote }}
- {{- end }}
+ - {{ printf "%s-%s-headless.%s.svc.%s" (include "pulsar.fullname" .root)
.componentConfig.component (include "pulsar.namespace" .root)
.root.Values.clusterDomain | quote }}
+ {{- else }}
- {{ printf "*.%s-%s.%s.svc.%s" (include "pulsar.fullname" .root)
.componentConfig.component (include "pulsar.namespace" .root)
.root.Values.clusterDomain | quote }}
+ {{- end }}
+ - {{ printf "%s-%s.%s.svc.%s" (include "pulsar.fullname" .root)
.componentConfig.component (include "pulsar.namespace" .root)
.root.Values.clusterDomain | quote }}
- {{ printf "%s-%s" (include "pulsar.fullname" .root)
.componentConfig.component | quote }}
{{- if .tlsConfig.ipAddresses }}
ipAddresses: