github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/pulsar-cluster/templates/validate.yaml (about) 1 {{- if .Values.zookeeper.replicaCount }} 2 {{- if ne (mod (int .Values.zookeeper.replicaCount) 2) 1 }} 3 {{ fail "Zookeeper cluster does not support running with even number replicas." }} 4 {{- end }} 5 {{- end }} 6 {{- if .Values.bookies.replicaCount }} 7 {{- if lt (int .Values.bookies.replicaCount) 3 }} 8 {{ fail "Pulsar bookies replicas cannot be less than 3." }} 9 {{- end }} 10 {{- end }} 11 {{- if .Values.bookiesRecovery.replicaCount }} 12 {{- if lt (int .Values.bookiesRecovery.replicaCount) 3 }} 13 {{ fail "Pulsar bookiesRecovery replicas cannot be less than 3." }} 14 {{- end }} 15 {{- end }} 16 {{- if .Values.bookies.mode }} 17 {{- if and (ne .Values.bookies.mode "generic") (ne .Values.bookies.mode "selfVerifying") }} 18 {{ fail "pulsar bookies mode only supported [generic,selfVerifying]" }} 19 {{- end }} 20 {{- end }}