Fixed syntax errors of tpl function

This commit is contained in:
2023-11-02 12:09:09 +01:00
parent d9f1c1dcd5
commit c9b12451d8
10 changed files with 34 additions and 17 deletions
+3 -3
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.20
version: 0.1.21
maintainers:
- name: Jim Martens
url: https://2martens.de
@@ -10,8 +10,8 @@ sources:
- https://git.2martens.de/2martens/cloud-configuration
annotations:
artifacthub.io/changes: |
- kind: changed
description: Added support for Prometheus operator with pod monitor
- kind: fixed
description: Fixed syntax error
artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
+1 -1
View File
@@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ include "template.fullname" . }}
namespace: {{ tpl .Values.prometheus.namespace . | default "observability" }}
namespace: {{ tpl (quote .Values.prometheus.namespace) . | default "observability" }}
labels:
{{- include "template.labels" . | nindent 4 }}
spec: