Skip to content

Commit

Permalink
helm: fixes service annotation
Browse files Browse the repository at this point in the history
Issue: kubernetes-sigs#1219

Problem: when labels for the service are defined they will also show in
the annotations

Signed-off-by: JoaoBraveCoding <[email protected]>
  • Loading branch information
JoaoBraveCoding committed Mar 23, 2023
1 parent cdbc83c commit 84f149a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/metrics-server/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "metrics-server.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- with .Values.service.labels -}}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.service.labels -}}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
Expand Down

0 comments on commit 84f149a

Please sign in to comment.