From 9067c4a8451d16f674f2c7af3db9f3dd02c47a6e Mon Sep 17 00:00:00 2001 From: Johannes Girard <39263897+JohGirard@users.noreply.github.com> Date: Wed, 27 Sep 2023 08:12:58 +0200 Subject: [PATCH] feat(helm-chart): add commonLabels capability (#487) --- helm/yatai/templates/_helpers.tpl | 1 + helm/yatai/values.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/helm/yatai/templates/_helpers.tpl b/helm/yatai/templates/_helpers.tpl index 4010d335..573064cf 100644 --- a/helm/yatai/templates/_helpers.tpl +++ b/helm/yatai/templates/_helpers.tpl @@ -45,6 +45,7 @@ helm.sh/chart: {{ include "yatai.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- toYaml .Values.commonLabels | nindent 0 }} {{- end }} {{/* diff --git a/helm/yatai/values.yaml b/helm/yatai/values.yaml index 11a6e331..7b2638b1 100644 --- a/helm/yatai/values.yaml +++ b/helm/yatai/values.yaml @@ -76,6 +76,8 @@ autoscaling: targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 +commonLabels: {} + nodeSelector: {} tolerations: []