FEATURE: allow additional labels

This commit is contained in:
chechia 2023-06-19 20:34:56 +08:00
parent 0d2afef276
commit 935eaf9479
No known key found for this signature in database
GPG Key ID: BF5216A9961E11A6
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,9 @@ Common labels
{{- define "bbgo.labels" -}} {{- define "bbgo.labels" -}}
helm.sh/chart: {{ include "bbgo.chart" . }} helm.sh/chart: {{ include "bbgo.chart" . }}
{{ include "bbgo.selectorLabels" . }} {{ include "bbgo.selectorLabels" . }}
{{- if .Values.addtionalLabels }}
{{ toYaml .Values.additionalLabels }}
{{- end }}
{{- if .Chart.AppVersion }} {{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }} {{- end }}

View File

@ -37,6 +37,8 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: "" name: ""
additionalLabels: {}
podAnnotations: {} podAnnotations: {}
podSecurityContext: {} podSecurityContext: {}