From 935eaf94798fabcb86da6bd126d08955b6c1d5e3 Mon Sep 17 00:00:00 2001 From: chechia Date: Mon, 19 Jun 2023 20:34:56 +0800 Subject: [PATCH] FEATURE: allow additional labels --- charts/bbgo/templates/_helpers.tpl | 3 +++ charts/bbgo/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/bbgo/templates/_helpers.tpl b/charts/bbgo/templates/_helpers.tpl index 7060adbd8..6b9829c58 100644 --- a/charts/bbgo/templates/_helpers.tpl +++ b/charts/bbgo/templates/_helpers.tpl @@ -36,6 +36,9 @@ Common labels {{- define "bbgo.labels" -}} helm.sh/chart: {{ include "bbgo.chart" . }} {{ include "bbgo.selectorLabels" . }} +{{- if .Values.addtionalLabels }} +{{ toYaml .Values.additionalLabels }} +{{- end }} {{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} diff --git a/charts/bbgo/values.yaml b/charts/bbgo/values.yaml index 179c31777..1fe20f538 100644 --- a/charts/bbgo/values.yaml +++ b/charts/bbgo/values.yaml @@ -37,6 +37,8 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: "" +additionalLabels: {} + podAnnotations: {} podSecurityContext: {}