Fixed prometheus annotations

This commit is contained in:
2023-11-02 00:21:17 +01:00
parent 3c27c54bbf
commit 9c9ec92b74
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -15,7 +15,6 @@ spec:
{{- include "template.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- if $.Values.prometheus.enabled }}
prometheus.io/scrape: "true"
@@ -26,8 +25,9 @@ spec:
{{- end }}
prometheus.io/port: "{{ $.Values.application.actuatorPort }}"
{{- end }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
labels:
{{- include "template.selectorLabels" . | nindent 8 }}
spec: