[bitnami/metrics-server] Support configuring service labels (#3870)

Co-authored-by: Jude Iwuh <Jude.Iwuh@travelport.com>
This commit is contained in:
jiwuh
2020-10-05 07:35:04 +01:00
committed by GitHub
parent bd582e23d3
commit 0bbc2670aa
4 changed files with 12 additions and 2 deletions

View File

@@ -3,8 +3,11 @@ kind: Service
metadata:
name: {{ template "metrics-server.fullname" . }}
labels: {{- include "metrics-server.labels" . | nindent 4 }}
{{- if .Values.service.labels }}
{{- include "metrics-server.tplValue" (dict "value" .Values.service.labels "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.service.annotations }}
annotations: {{- include "metrics-server.tplValue" (dict "value" .Values.service.annotation "context" $) | nindent 4 }}
annotations: {{- include "metrics-server.tplValue" (dict "value" .Values.service.annotations "context" $) | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}