diff --git a/charts/pulsar/templates/bookkeeper-service.yaml b/charts/pulsar/templates/bookkeeper-service.yaml index 388635b..cd2578e 100644 --- a/charts/pulsar/templates/bookkeeper-service.yaml +++ b/charts/pulsar/templates/bookkeeper-service.yaml @@ -26,8 +26,10 @@ metadata: labels: {{- include "pulsar.standardLabels" . | nindent 4 }} component: {{ .Values.bookkeeper.component }} +{{- if .Values.bookkeeper.service.annotations }} annotations: {{ toYaml .Values.bookkeeper.service.annotations | indent 4 }} +{{- end }} spec: ports: - name: bookie @@ -38,4 +40,7 @@ spec: selector: {{- include "pulsar.matchLabels" . | nindent 4 }} component: {{ .Values.bookkeeper.component }} + {{- if .Values.bookkeeper.service.spec }} + {{- toYaml .Values.bookkeeper.service.spec | trim | nindent 2 }} + {{- end }} {{- end }} diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml index eb48d99..8ad5d95 100644 --- a/charts/pulsar/values.yaml +++ b/charts/pulsar/values.yaml @@ -489,8 +489,8 @@ bookkeeper: ## templates/bookkeeper-service.yaml ## service: - annotations: - publishNotReadyAddresses: "true" + spec: + publishNotReadyAddresses: true ## Bookkeeper PodDisruptionBudget ## templates/bookkeeper-pdb.yaml ##