Skip to content

Commit ba5e555

Browse files
committed
Add additionalMatchLabels to helm chart.
1 parent 6d0ab91 commit ba5e555

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

kubernetes/helm/pinot/templates/_helpers.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ Match Selector labels
5555
*/}}
5656
{{- define "pinot.matchLabels" -}}
5757
app: {{ include "pinot.name" . }}
58-
chart: {{ include "pinot.chart" . }}
5958
release: {{ .Release.Name }}
59+
{{- range $key, $value := .Values.additionalMatchLabels }}
60+
{{ $key }}: {{ $value }}
61+
{{- end }}
6062
{{- end }}
6163

6264
{{/*

kubernetes/helm/pinot/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ serviceAccount:
5252
# If not set and create is true, a name is generated using the fullname template
5353
name: ""
5454

55+
additionalMatchLabels: {}
56+
5557
# ------------------------------------------------------------------------------
5658
# Pinot Controller:
5759
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)