mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 14:57:08 +08:00
[bitnami/metrics-server] Support configuring service labels (#3870)
Co-authored-by: Jude Iwuh <Jude.Iwuh@travelport.com>
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user