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 d4af990  add support for custom annotations on initialization Jobs 
(#665)
d4af990 is described below

commit d4af990ff5b39bb89aaf25c9a39ee00ca0db6cfa
Author: Yuval Levy <[email protected]>
AuthorDate: Wed Mar 18 20:09:46 2026 +0200

    add support for custom annotations on initialization Jobs (#665)
---
 charts/pulsar/templates/bookkeeper-cluster-initialize.yaml     | 4 ++++
 charts/pulsar/templates/pulsar-cluster-initialize.yaml         | 4 ++++
 charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml | 4 ++++
 charts/pulsar/values.yaml                                      | 3 ++-
 4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml 
b/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml
index 9b946bb..735bf9d 100755
--- a/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml
+++ b/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml
@@ -26,6 +26,10 @@ metadata:
   labels:
     {{- include "pulsar.standardLabels" . | nindent 4 }}
     component: "{{ .Values.bookkeeper.component }}-init"
+  {{- with .Values.job.annotations }}
+  annotations:
+    {{- toYaml . | nindent 4 }}
+  {{- end }}
 spec:
 # This feature was previously behind a feature gate for several Kubernetes 
versions and will default to true in 1.23 and beyond
 # 
https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/
diff --git a/charts/pulsar/templates/pulsar-cluster-initialize.yaml 
b/charts/pulsar/templates/pulsar-cluster-initialize.yaml
index 8da736f..74599da 100755
--- a/charts/pulsar/templates/pulsar-cluster-initialize.yaml
+++ b/charts/pulsar/templates/pulsar-cluster-initialize.yaml
@@ -27,6 +27,10 @@ metadata:
   labels:
     {{- include "pulsar.standardLabels" . | nindent 4 }}
     component: {{ .Values.pulsar_metadata.component }}
+  {{- with .Values.job.annotations }}
+  annotations:
+    {{- toYaml . | nindent 4 }}
+  {{- end }}
 spec:
 # This feature was previously behind a feature gate for several Kubernetes 
versions and will default to true in 1.23 and beyond
 # 
https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/
diff --git a/charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml 
b/charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml
index c1ce662..2b20d1f 100755
--- a/charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml
+++ b/charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml
@@ -27,6 +27,10 @@ metadata:
   labels:
     {{- include "pulsar.standardLabels" . | nindent 4 }}
     component: {{ .Values.pulsar_manager.component }}-init
+  {{- with .Values.job.annotations }}
+  annotations:
+    {{- toYaml . | nindent 4 }}
+  {{- end }}
 spec:
   {{- if and .Values.job.ttl.enabled (semverCompare ">=1.23-0" 
.Capabilities.KubeVersion.Version) }}
   ttlSecondsAfterFinished: {{ .Values.job.ttl.secondsAfterFinished | default 
600 }}
diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml
index e242fe2..8a7e3dd 100755
--- a/charts/pulsar/values.yaml
+++ b/charts/pulsar/values.yaml
@@ -2006,11 +2006,12 @@ dekaf:
     accessModes:
       - ReadWriteOnce
 
-# These are jobs where job ttl configuration is used
+# These are jobs where job ttl configuration is used / annotations are applied
 # pulsar-helm-chart/charts/pulsar/templates/pulsar-cluster-initialize.yaml
 # pulsar-helm-chart/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml
 # 
pulsar-helm-chart/charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml
 job:
+  annotations: {}
   ttl:
     enabled: false
     secondsAfterFinished: 3600

Reply via email to