fix: add argocd servicemonitor annotations conditionally

Signed-off-by: Mats Willemsen <mats.willemsen@ah.nl>
This commit is contained in:
Mats Willemsen 2023-09-18 14:17:06 +02:00
parent 8d00bec86e
commit e7aa59d0e8
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ appVersion: v2.8.4
kubeVersion: ">=1.23.0-0" kubeVersion: ">=1.23.0-0"
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes. description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd name: argo-cd
version: 5.46.4 version: 5.46.5
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
sources: sources:

View file

@ -12,9 +12,9 @@ metadata:
{{- with .Values.server.metrics.serviceMonitor.additionalLabels }} {{- with .Values.server.metrics.serviceMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- with .Values.server.metrics.serviceMonitor.annotations }}
annotations: annotations:
{{- range $key, $value := .Values.server.metrics.serviceMonitor.annotations }} {{- toYaml . | nindent 4 }}
{{ $key }}: {{ $value | quote }}
{{- end }} {{- end }}
spec: spec:
endpoints: endpoints: