Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support to customize broker podManagementPolicy from values.yaml #525

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 changed on an existing broker. If you want to make this change, you will need to manually recreate the StatefulSet.
lhotari marked this conversation as resolved.
Show resolved Hide resolved
podManagementPolicy:
initContainers: []
# This is how prometheus discovers this component
podMonitor:
Expand Down