From 5a97b7a01c5a49eefe390b2b840ba0b66a9e13ab Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Tue, 9 Jul 2024 19:13:54 +0530 Subject: [PATCH] chore: add global labels in chart --- chart/templates/_helpers.tpl | 3 +++ chart/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index 904fbc67..d75310e0 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -36,5 +36,8 @@ Selector labels app.kubernetes.io/name: {{ include "config-db.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} control-plane: {{ include "config-db.name" . }} +{{- if .Values.global.labels }} +{{.Values.global.labels | toYaml}} +{{- end }} {{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index e6b3b020..3bd9d73c 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -4,6 +4,7 @@ global: imageRegistry: docker.io imagePrefix: flanksource + labels: {} db: connectionPooler: enabled: false