Skip to content

Commit

Permalink
fix: change pulsar bookies min-replica from 3 to 2 (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
caiq1nyu authored Jul 19, 2024
1 parent 2c5b5ff commit ba9bd91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions addons-cluster/pulsar-cluster/templates/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
{{- end }}
{{- end }}
{{- if .Values.bookies.replicaCount }}
{{- if lt (int .Values.bookies.replicaCount) 3 }}
{{ fail "Pulsar bookies replicas cannot be less than 3." }}
{{- if lt (int .Values.bookies.replicaCount) 2 }}
{{ fail "Pulsar bookies replicas cannot be less than 2." }}
{{- end }}
{{- end }}
{{/*{{- if .Values.bookiesRecovery.replicaCount }}*/}}
{{/* {{- if lt (int .Values.bookiesRecovery.replicaCount) 3 }}*/}}
{{/* {{ fail "Pulsar bookiesRecovery replicas cannot be less than 3." }}*/}}
{{/* {{- end }}*/}}
{{/*{{- end }}*/}}
{{- if .Values.bookies.mode }}
{{- if and (ne .Values.bookies.mode "generic") (ne .Values.bookies.mode "selfVerifying") }}
{{ fail "pulsar bookies mode only supported [generic,selfVerifying]" }}
Expand Down
2 changes: 1 addition & 1 deletion addons/pulsar/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Apache Pulsar is an open-source, distributed messaging and streamin

type: application

version: 0.9.0
version: 0.9.1

# appVersion specifies the version of the Pulsar database to be created,
# and this value should be consistent with an existing clusterVersion.
Expand Down

0 comments on commit ba9bd91

Please sign in to comment.