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 54401c0  feat: Support to customize broker podManagementPolicy from 
values.yaml (#525)
54401c0 is described below

commit 54401c0b9a848bbe42b55562e7d698bc48571a80
Author: ludmanl <[email protected]>
AuthorDate: Tue Sep 3 12:47:52 2024 +0200

    feat: Support to customize broker podManagementPolicy from values.yaml 
(#525)
---
 charts/pulsar/templates/broker-statefulset.yaml | 4 +++-
 charts/pulsar/values.yaml                       | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/charts/pulsar/templates/broker-statefulset.yaml 
b/charts/pulsar/templates/broker-statefulset.yaml
index b5e4a63..dc4157a 100644
--- a/charts/pulsar/templates/broker-statefulset.yaml
+++ b/charts/pulsar/templates/broker-statefulset.yaml
@@ -48,7 +48,9 @@ spec:
   {{- if $stsObj }}
   podManagementPolicy: {{ $stsObj.spec.podManagementPolicy }}
   {{- else }}
-  {{- if not .Values.components.functions }}
+  {{- if .Values.broker.podManagementPolicy }}
+  podManagementPolicy: {{ .Values.broker.podManagementPolicy }}
+  {{- else if not .Values.components.functions }}
   podManagementPolicy: Parallel
   {{- else }}
   podManagementPolicy: OrderedReady
diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml
index ec9bdbc..8fdb758 100755
--- a/charts/pulsar/values.yaml
+++ b/charts/pulsar/values.yaml
@@ -806,6 +806,8 @@ broker:
     maxReplicas: 3
     metrics: ~
     behavior: ~
+  # The podManagementPolicy cannot be modified for an existing deployment. If 
you need to change this value, you will need to manually delete the existing 
broker StatefulSet and then redeploy the chart.
+  podManagementPolicy:
   initContainers: []
   # This is how prometheus discovers this component
   podMonitor:

Reply via email to