fix(argo-cd): make ServiceMonitor annotations in ArgoCD server conditional (#2273)

* fix: add argocd servicemonitor annotations conditionally
Signed-off-by: Mats Willemsen <mats.willemsen@ah.nl>

* chore(argo-cd): add changelog

Signed-off-by: Mats Willemsen <mats.willemsen@ah.nl>

---------

Signed-off-by: Mats Willemsen <mats.willemsen@ah.nl>
This commit is contained in:
Mats Willemsen 2023-09-18 15:21:36 +02:00 committed by GitHub
parent 8d00bec86e
commit 5626d0536f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

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