From d9b50f40a9581c38c77789a18131777f8d329223 Mon Sep 17 00:00:00 2001 From: shahargl Date: Tue, 3 Sep 2024 13:38:46 +0300 Subject: [PATCH] feat: tpl --- charts/keep/Chart.yaml | 2 +- charts/keep/templates/keep-backend.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/keep/Chart.yaml b/charts/keep/Chart.yaml index 0cf0b6e..831adb8 100644 --- a/charts/keep/Chart.yaml +++ b/charts/keep/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: keep -version: 0.1.7 +version: 0.1.8 description: Keep Helm Chart type: application icon: https://platform.keephq.dev/_next/image?url=%2Fkeep.png&w=48&q=75 diff --git a/charts/keep/templates/keep-backend.yaml b/charts/keep/templates/keep-backend.yaml index 2421cef..d6437a5 100644 --- a/charts/keep/templates/keep-backend.yaml +++ b/charts/keep/templates/keep-backend.yaml @@ -47,13 +47,13 @@ spec: {{- if .secretKeyRef }} valueFrom: secretKeyRef: - name: {{ .secretKeyRef.secretName }} - key: {{ .secretKeyRef.secretKey }} + name: {{ tpl (.secretKeyRef.secretName | toString) $ }} + key: {{ tpl (.secretKeyRef.secretKey | toString) $ }} {{- else if .configMapKeyRef }} valueFrom: configMapKeyRef: - name: {{ .configMapName }} - key: {{ .configMapKey }} + name: {{ tpl (.configMapName | toString) $ }} + key: {{ tpl (.configMapKey | toString) $ }} {{- else if .fieldRef }} valueFrom: fieldRef: