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 7145033  Fix zookeeper annotations (#348)
7145033 is described below

commit 71450334cfc7dec4e74746b0e015f3640866f3ef
Author: Robert Moucha <[email protected]>
AuthorDate: Tue Jul 11 09:01:54 2023 +0200

    Fix zookeeper annotations (#348)
    
    Fixed the case when no ZK annotations are set and 
`zookeeper.restartPodsOnConfigMapChange: true`
    helm can not render template
---
 charts/pulsar/templates/zookeeper-statefulset.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/charts/pulsar/templates/zookeeper-statefulset.yaml 
b/charts/pulsar/templates/zookeeper-statefulset.yaml
index ef8f9c3..2f0204d 100644
--- a/charts/pulsar/templates/zookeeper-statefulset.yaml
+++ b/charts/pulsar/templates/zookeeper-statefulset.yaml
@@ -46,7 +46,9 @@ spec:
         {{- if .Values.zookeeper.restartPodsOnConfigMapChange }}
         checksum/config: {{ include (print $.Template.BasePath 
"/zookeeper-configmap.yaml") . | sha256sum }}
         {{- end }}
-{{ toYaml .Values.zookeeper.annotations | indent 8 }}
+{{- with .Values.zookeeper.annotations }}
+{{ toYaml . | indent 8 }}
+{{- end }}
     spec:
     {{- if .Values.zookeeper.nodeSelector }}
       nodeSelector:

Reply via email to