Skip to content

Commit

Permalink
Fix Oxia config so that it includes a list of all pods in the statefu…
Browse files Browse the repository at this point in the history
…lset
  • Loading branch information
lhotari committed Nov 22, 2024
1 parent cc12992 commit 7fa2fbf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions charts/pulsar/templates/_oxia.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,13 @@ namespaces:
initialShardCount: {{ .Values.oxia.initialShardCount }}
replicationFactor: {{ .Values.oxia.replicationFactor }}
servers:
- public: {{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-svc.{{ template "pulsar.namespace" . }}.svc.cluster.local:{{ .Values.oxia.server.ports.public }}
internal: {{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-svc.{{ template "pulsar.namespace" . }}.svc.cluster.local:{{ .Values.oxia.server.ports.internal }}
{{- $servicenameFQDN := printf "%s-%s-svc.%s.svc.cluster.local" (include "pulsar.fullname" .) .Values.oxia.component (include "pulsar.namespace" .) }}
{{- $podnamePrefix := printf "%s-%s-server-" (include "pulsar.fullname" .) .Values.oxia.component }}
{{- range until (int .Values.oxia.server.replicas) }}
{{- $podnameFQDN := printf "%s%d.%s" $podnamePrefix . $servicenameFQDN }}
- public: {{ $podnameFQDN }}:{{ $.Values.oxia.server.ports.public }}
internal: {{ $podnameFQDN }}:{{ $.Values.oxia.server.ports.internal }}
{{- end }}
{{- end }}

{{/*
Expand Down

0 comments on commit 7fa2fbf

Please sign in to comment.