From ba6c1c1b074dc03fae3fc694a8990cba9014c6ad Mon Sep 17 00:00:00 2001 From: Vincent Farroco Date: Mon, 20 Jul 2026 15:05:14 +0200 Subject: [PATCH] feat(helm/charts): add support for pod labels --- .../templates/dorisdisaggregatedcluster.yaml | 12 ++++++++++++ helm-charts/doris-disaggregated/values.yaml | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/helm-charts/doris-disaggregated/templates/dorisdisaggregatedcluster.yaml b/helm-charts/doris-disaggregated/templates/dorisdisaggregatedcluster.yaml index 9d5bb08f..90bb7b98 100644 --- a/helm-charts/doris-disaggregated/templates/dorisdisaggregatedcluster.yaml +++ b/helm-charts/doris-disaggregated/templates/dorisdisaggregatedcluster.yaml @@ -30,6 +30,10 @@ spec: password: {{ .Values.adminUser.password }} {{- end }} metaService: + {{- if .Values.msSpec.labels }} + labels: + {{- toYaml .Values.msSpec.labels | nindent 6 }} + {{- end }} image: {{ .Values.msSpec.image.repository }}:{{ .Values.msSpec.image.tag }} {{- if .Values.msSpec.imagePullSecrets }} imagePullSecrets: @@ -55,6 +59,10 @@ spec: {{- toYaml .Values.msSpec.nodeSelector | nindent 6 }} {{- end }} feSpec: + {{- if .Values.feSpec.labels }} + labels: + {{- toYaml .Values.feSpec.labels | nindent 6 }} + {{- end }} replicas: {{ .Values.feSpec.replicas }} electionNumber: {{ include "fe.electionnumber" . }} image: {{ .Values.feSpec.image.repository }}:{{ .Values.feSpec.image.tag }} @@ -80,6 +88,10 @@ spec: {{- $originalContext := . -}} {{- range $index, $cgName := .Values.computeGroupNames }} - uniqueId: {{ $cgName }} + {{- if $originalContext.Values.computeSpec.labels }} + labels: + {{- toYaml $originalContext.Values.computeSpec.labels | nindent 6 }} + {{- end }} replicas: {{ $originalContext.Values.computeSpec.replicas }} image: {{ $originalContext.Values.computeSpec.image.repository }}:{{ $originalContext.Values.computeSpec.image.tag }} {{- if $originalContext.Values.computeSpec.imagePullSecrets }} diff --git a/helm-charts/doris-disaggregated/values.yaml b/helm-charts/doris-disaggregated/values.yaml index 9438ca36..ea09131c 100644 --- a/helm-charts/doris-disaggregated/values.yaml +++ b/helm-charts/doris-disaggregated/values.yaml @@ -29,6 +29,8 @@ adminUser: {} # describe the ms specification for deploying. msSpec: + # labels to be added to the ms pod + labels: {} # fdb is required config, the last is example to config, not available to use. fdb: # specify the fdb cluster deployed namespace. @@ -59,6 +61,8 @@ msSpec: feSpec: # the electionNumber denotes the FE followers number. electionNumber: 3 + # labels to be added to the FE pod + labels: {} # the number of fe, the number contains the number of follower and observer. replicas: 3 image: @@ -110,6 +114,8 @@ computeGroupNames: # describe the compute group spec to deploy. computeSpec: replicas: 2 + # labels to be added to the BE pod + labels: {} image: repository: apache/doris tag: be-3.0.5