Co-authored-by: Elad Dolev <elad@firebolt.io> ### Motivation Give the ability to deploy multi-cluster instance on K8s clusters with non-default `clusterDomain`, and connect to external configuration-store ### Modifications - give the ability to change cluster's name - give the ability to change `clusterDomain` - fix external configuration store functionality - use broker ports variables - use label templates, and add `component` label in several places ### Verifying this change - [x] Make sure that the change passes the CI checks.
21 lines
573 B
Smarty
21 lines
573 B
Smarty
{{/*
|
|
Define configuration store endpoint
|
|
*/}}
|
|
{{- define "pulsar.configurationStore.service" -}}
|
|
{{- if .Values.pulsar_metadata.configurationStore }}
|
|
{{- .Values.pulsar_metadata.configurationStore }}
|
|
{{- else -}}
|
|
{{ template "pulsar.zookeeper.service" . }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Define configuration store connection string
|
|
*/}}
|
|
{{- define "pulsar.configurationStore.connect" -}}
|
|
{{- if .Values.pulsar_metadata.configurationStore }}
|
|
{{- template "pulsar.configurationStore.service" . }}:{{ .Values.pulsar_metadata.configurationStorePort }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|