From bb5c83a07028fb2980a1516521c0c284949225e3 Mon Sep 17 00:00:00 2001 From: ericsyh Date: Thu, 6 Jun 2024 19:39:58 +0800 Subject: [PATCH] add the coordinator label on sn-platform chart Signed-off-by: ericsyh --- .../sn-platform/templates/bookkeeper/bookkeeper-cluster.yaml | 3 +++ charts/sn-platform/templates/broker/broker-cluster.yaml | 3 +++ charts/sn-platform/templates/proxy/proxy-cluster.yaml | 3 +++ charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/charts/sn-platform/templates/bookkeeper/bookkeeper-cluster.yaml b/charts/sn-platform/templates/bookkeeper/bookkeeper-cluster.yaml index 2a8e547e0..c9560f594 100644 --- a/charts/sn-platform/templates/bookkeeper/bookkeeper-cluster.yaml +++ b/charts/sn-platform/templates/bookkeeper/bookkeeper-cluster.yaml @@ -22,6 +22,9 @@ metadata: {{- with .Values.bookkeeper.bookKeeperCluster.labels -}} {{ toYaml . | nindent 4 }} {{- end }} +{{- if .Values.components.pulsar_coordinator }} + k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator" +{{- end }} spec: {{- if not .Values.initialize }} initialized: true diff --git a/charts/sn-platform/templates/broker/broker-cluster.yaml b/charts/sn-platform/templates/broker/broker-cluster.yaml index edae643a6..eff81fcef 100644 --- a/charts/sn-platform/templates/broker/broker-cluster.yaml +++ b/charts/sn-platform/templates/broker/broker-cluster.yaml @@ -23,6 +23,9 @@ metadata: {{- with .Values.broker.pulsarBroker.labels -}} {{ toYaml . | nindent 4 }} {{- end }} +{{- if .Values.components.pulsar_coordinator }} + k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator" +{{- end }} spec: {{- if not .Values.initialize }} initialized: true diff --git a/charts/sn-platform/templates/proxy/proxy-cluster.yaml b/charts/sn-platform/templates/proxy/proxy-cluster.yaml index 0b014b836..5e46895cc 100644 --- a/charts/sn-platform/templates/proxy/proxy-cluster.yaml +++ b/charts/sn-platform/templates/proxy/proxy-cluster.yaml @@ -23,6 +23,9 @@ metadata: {{- with .Values.proxy.pulsarProxy.labels -}} {{ toYaml . | nindent 4 }} {{- end }} +{{- if .Values.components.pulsar_coordinator }} + k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator" +{{- end }} spec: brokerAddress: {{ template "pulsar.proxy.broker.service.address" . }} replicas: {{ .Values.proxy.replicaCount }} diff --git a/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml b/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml index 43189d00d..788c27077 100644 --- a/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml +++ b/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml @@ -23,6 +23,9 @@ metadata: {{- with .Values.zookeeper.zooKeeperCluster.labels -}} {{ toYaml . | nindent 4 }} {{- end }} +{{- if .Values.components.pulsar_coordinator }} + k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator" +{{- end }} spec: replicas: {{ .Values.zookeeper.replicaCount }} image: "{{ .Values.images.zookeeper.repository }}:{{ .Values.images.zookeeper.tag }}"