Skip to content

Commit

Permalink
feat: Support to customize broker podManagementPolicy from values.yaml (
Browse files Browse the repository at this point in the history
  • Loading branch information
ludmanl authored Sep 3, 2024
1 parent 0031827 commit 54401c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/pulsar/templates/broker-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 54401c0

Please sign in to comment.