Added namespace selector

This commit is contained in:
2023-11-02 12:45:50 +01:00
parent 86eff35184
commit 0c1cd90e4e
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ apiVersion: v2
name: template name: template
description: A Helm library chart containing common templates, keeping application templates short description: A Helm library chart containing common templates, keeping application templates short
type: library type: library
version: 0.1.24 version: 0.1.25
maintainers: maintainers:
- name: Jim Martens - name: Jim Martens
url: https://2martens.de url: https://2martens.de
@@ -10,8 +10,8 @@ sources:
- https://git.2martens.de/2martens/cloud-configuration - https://git.2martens.de/2martens/cloud-configuration
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: fixed - kind: added
description: Fixed selector for pod monitor description: Added namespace selector
artifacthub.io/signKey: | artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8 fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
+3
View File
@@ -12,6 +12,9 @@ spec:
podMetricsEndpoints: podMetricsEndpoints:
- port: "{{ .Values.application.actuatorPort }}" - port: "{{ .Values.application.actuatorPort }}"
path: /actuator/prometheus path: /actuator/prometheus
namespaceSelector:
matchNames:
- "{{ .Release.Namespace }}"
selector: selector:
matchLabels: matchLabels:
{{- include "template.selectorLabels" . | nindent 6 }} {{- include "template.selectorLabels" . | nindent 6 }}