Merge pull request #4031 from greenhost/allow-custom-kubernetes-labels

Allow setting custom kubernetes labels when using the helm chart
This commit is contained in:
Lauri Ojansivu 2021-10-05 20:51:00 +03:00 committed by GitHub
commit 74825c099f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -8,6 +8,9 @@ metadata:
component: wekan
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.deploymentLabels }}
{{- toYaml .Values.deploymentLabels | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
@ -22,6 +25,9 @@ spec:
app: {{ template "wekan.name" . }}
component: wekan
release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ template "wekan.serviceAccountName" . }}
containers:

View file

@ -103,6 +103,12 @@ autoscaling:
##
targetCPUUtilizationPercentage: 80
# Optional custom labels for the deployment resource.
deploymentLabels: {}
# Optional custom labels for the pods created by the deployment.
podLabels: {}
# ------------------------------------------------------------------------------
# MongoDB:
# ------------------------------------------------------------------------------