Fixed prometheus annotations
This commit is contained in:
parent
3c27c54bbf
commit
9c9ec92b74
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||
name: template
|
||||
description: A Helm library chart containing common templates, keeping application templates short
|
||||
type: library
|
||||
version: 0.1.18
|
||||
version: 0.1.19
|
||||
maintainers:
|
||||
- name: Jim Martens
|
||||
url: https://2martens.de
|
||||
|
@ -11,7 +11,7 @@ sources:
|
|||
annotations:
|
||||
artifacthub.io/changes: |
|
||||
- kind: fixed
|
||||
description: Fixed location of annotations for prometheus
|
||||
description: Fixed annotations
|
||||
artifacthub.io/signKey: |
|
||||
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
|
||||
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in New Issue