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:
parent
8d00bec86e
commit
5626d0536f
2 changed files with 5 additions and 5 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue