Skip to content

Commit 6f0c69c

Browse files
authored
Merge pull request #327 from bluicezhen/master
Add support for pod annotations in doris Helm charts
2 parents e05848d + 26f30a7 commit 6f0c69c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

helm-charts/doris/templates/doriscluster.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ spec:
3838
authSecret: {{ template "doriscluster.secret.name" . }}
3939
{{- end }}
4040
feSpec:
41+
{{- if .Values.feSpec.annotations }}
42+
annotations:
43+
{{- toYaml .Values.feSpec.annotations | nindent 6 }}
44+
{{- end }}
4145
replicas: {{ .Values.feSpec.replicas }}
4246
{{- if .Values.feSpec.electionNumber }}
4347
electionNumber: {{ .Values.feSpec.electionNumber }}
@@ -123,6 +127,10 @@ spec:
123127
{{- end }}
124128
{{- end }}
125129
beSpec:
130+
{{- if .Values.beSpec.annotations }}
131+
annotations:
132+
{{- toYaml .Values.beSpec.annotations | nindent 6 }}
133+
{{- end }}
126134
replicas: {{ .Values.beSpec.replicas }}
127135
{{- if .Values.beSpec.labels }}
128136
podLabels:
@@ -206,6 +214,10 @@ spec:
206214
{{- end }}
207215
{{- if .Values.dorisCluster.enabledCn }}
208216
cnSpec:
217+
{{- if .Values.cnSpec.annotations }}
218+
annotations:
219+
{{- toYaml .Values.cnSpec.annotations | nindent 6 }}
220+
{{- end }}
209221
replicas: {{ .Values.cnSpec.replicas }}
210222

211223
{{- if .Values.cnSpec.labels }}
@@ -300,6 +312,10 @@ spec:
300312

301313
{{- if .Values.dorisCluster.enabledBroker }}
302314
brokerSpec:
315+
{{- if .Values.brokerSpec.annotations }}
316+
annotations:
317+
{{- toYaml .Values.brokerSpec.annotations | nindent 6 }}
318+
{{- end }}
303319
replicas: {{ .Values.brokerSpec.replicas }}
304320

305321
{{- if .Values.brokerSpec.labels }}

helm-charts/doris/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ dorisCluster:
4444
# password: dDBwLVNlY3JldA==
4545

4646
feSpec:
47+
# annotations for fe pods and service
48+
annotations: {}
4749
replicas: 3
4850
# electionNumber represents `FOLLOWER` number, replicas - electionNumber as `OBSERVER`
4951
# electionNumber: 3
@@ -210,6 +212,8 @@ feSpec:
210212
# command: [ "/sbin/sysctl", "-w", "vm.max_map_count=2000000" ]
211213

212214
beSpec:
215+
# annotations for be pods and service
216+
annotations: {}
213217
replicas: 3
214218
# the pod labels for user select or classify pods.
215219
labels: {}
@@ -375,6 +379,8 @@ beSpec:
375379
# command: [ "/sbin/sysctl", "-w", "vm.max_map_count=2000000" ]
376380

377381
cnSpec:
382+
# annotations for cn pods and service
383+
annotations: {}
378384
replicas: 3
379385
# the pod labels for user select or classify pods.
380386
labels: {}
@@ -556,6 +562,8 @@ cnSpec:
556562
# averageUtilization: 30
557563

558564
brokerSpec:
565+
# annotations for broker pods and service
566+
annotations: {}
559567
replicas: 3
560568
# the pod labels for user select or classify pods.
561569
labels: {}

0 commit comments

Comments
 (0)