Added missing release label

This commit is contained in:
Jim Martens 2023-11-02 12:33:31 +01:00
parent 5003c6500d
commit 84fcb27c8b
3 changed files with 5 additions and 2 deletions

View File

@ -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.22
version: 0.1.23
maintainers:
- name: Jim Martens
url: https://2martens.de
@ -11,7 +11,7 @@ sources:
annotations:
artifacthub.io/changes: |
- kind: fixed
description: Fixed type error
description: Added missing pod monitor label
artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc

View File

@ -61,6 +61,8 @@ prometheus:
# namespace: the namespace of the Prometheus installation
# the value is templated
namespace:
# name of helm release or argo cd application
releaseName:
# Overwrite with application specific environment variables
# Each item has key and value, where the value is parsed as a template

View File

@ -7,6 +7,7 @@ metadata:
namespace: {{ tpl (quote .Values.prometheus.namespace) . | default "observability" }}
labels:
{{- include "template.labels" . | nindent 4 }}
release: {{ .Values.prometheus.releaseName | quote | default "prometheus" }}
spec:
podMetricsEndpoints:
- port: "{{ .Values.application.actuatorPort }}"