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 79ec5ba  Fix pod annotations when `restartPodsOnConfigMapChange` is 
true (#353)
79ec5ba is described below

commit 79ec5ba33394dafb8428d69bfbff03b32a61950b
Author: Atkins <[email protected]>
AuthorDate: Wed Jul 12 23:18:48 2023 +0800

    Fix pod annotations when `restartPodsOnConfigMapChange` is true (#353)
    
    Signed-off-by: Atkins Chang <[email protected]>
---
 charts/pulsar/templates/pulsar-manager-deployment.yaml | 4 +++-
 charts/pulsar/templates/toolset-statefulset.yaml       | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/charts/pulsar/templates/pulsar-manager-deployment.yaml 
b/charts/pulsar/templates/pulsar-manager-deployment.yaml
index fd09871..11290e5 100644
--- a/charts/pulsar/templates/pulsar-manager-deployment.yaml
+++ b/charts/pulsar/templates/pulsar-manager-deployment.yaml
@@ -41,7 +41,9 @@ spec:
         {{- if .Values.pulsar_manager.restartPodsOnConfigMapChange }}
         checksum/config: {{ include (print $.Template.BasePath 
"/pulsar-manager-configmap.yaml") . | sha256sum }}
         {{- end }}
-{{ toYaml .Values.pulsar_manager.annotations | indent 8 }}
+{{- with .Values.pulsar_manager.annotations }}
+{{ toYaml . | indent 8 }}
+{{- end }}
     spec:
     {{- if .Values.pulsar_manager.nodeSelector }}
       nodeSelector:
diff --git a/charts/pulsar/templates/toolset-statefulset.yaml 
b/charts/pulsar/templates/toolset-statefulset.yaml
index e87c634..7861b69 100644
--- a/charts/pulsar/templates/toolset-statefulset.yaml
+++ b/charts/pulsar/templates/toolset-statefulset.yaml
@@ -45,7 +45,9 @@ spec:
         {{- if .Values.toolset.restartPodsOnConfigMapChange }}
         checksum/config: {{ include (print $.Template.BasePath 
"/toolset-configmap.yaml") . | sha256sum }}
         {{- end }}
-{{ toYaml .Values.toolset.annotations | indent 8 }}
+{{- with .Values.toolset.annotations }}
+{{ toYaml . | indent 8 }}
+{{- end }}
     spec:
     {{- if .Values.toolset.nodeSelector }}
       nodeSelector:

Reply via email to