From 5443510fa1bddde22793e23f432bb79eb57a71be Mon Sep 17 00:00:00 2001 From: shahargl Date: Thu, 22 Aug 2024 11:46:57 +0300 Subject: [PATCH] feat: tpl --- charts/keep/Chart.yaml | 2 +- charts/keep/templates/role-binding-secret-manager.yaml | 4 ++-- charts/keep/templates/role-secret-manager.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/keep/Chart.yaml b/charts/keep/Chart.yaml index b89496a..98ebed3 100644 --- a/charts/keep/Chart.yaml +++ b/charts/keep/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: keep -version: 0.1.4 +version: 0.1.5 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/role-binding-secret-manager.yaml b/charts/keep/templates/role-binding-secret-manager.yaml index 0ce58e0..3c9b8bc 100644 --- a/charts/keep/templates/role-binding-secret-manager.yaml +++ b/charts/keep/templates/role-binding-secret-manager.yaml @@ -2,11 +2,11 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: secret-manager-rolebinding - namespace: {{ .Values.namespace }} + namespace: {{ .Values.namespace | default .Release.Namespace | default "default" }} subjects: - kind: ServiceAccount name: {{ include "keep.serviceAccountName" . }} - namespace: {{ .Values.namespace }} + namespace: {{ .Values.namespace | default .Release.Namespace | default "default" }} roleRef: kind: Role name: secret-manager-role diff --git a/charts/keep/templates/role-secret-manager.yaml b/charts/keep/templates/role-secret-manager.yaml index 4e80226..57b842f 100644 --- a/charts/keep/templates/role-secret-manager.yaml +++ b/charts/keep/templates/role-secret-manager.yaml @@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: secret-manager-role - namespace: {{ .Values.namespace }} + namespace: {{ .Values.namespace | default .Release.Namespace | default "default" }} rules: - apiGroups: [""] resources: ["secrets"]