From 2a8ca04e5031255c6a7a19ff8516739a4b42b4b4 Mon Sep 17 00:00:00 2001 From: machine424 Date: Sun, 11 Feb 2024 13:53:55 +0100 Subject: [PATCH] chore: fix helm default RBAC --- helm-chart/kube-hpa-scale-to-zero/Chart.yaml | 1 + helm-chart/kube-hpa-scale-to-zero/templates/rbac.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/helm-chart/kube-hpa-scale-to-zero/Chart.yaml b/helm-chart/kube-hpa-scale-to-zero/Chart.yaml index 2560209..5517a1d 100644 --- a/helm-chart/kube-hpa-scale-to-zero/Chart.yaml +++ b/helm-chart/kube-hpa-scale-to-zero/Chart.yaml @@ -2,5 +2,6 @@ apiVersion: v2 name: kube-hpa-scale-to-zero description: See https://github.com/machine424/kube-hpa-scale-to-zero type: application +# Please Do not change this, it'll be done during the release. version: 0.4.0 appVersion: "0.4.0" diff --git a/helm-chart/kube-hpa-scale-to-zero/templates/rbac.yaml b/helm-chart/kube-hpa-scale-to-zero/templates/rbac.yaml index f6a7bfa..71f5ba5 100644 --- a/helm-chart/kube-hpa-scale-to-zero/templates/rbac.yaml +++ b/helm-chart/kube-hpa-scale-to-zero/templates/rbac.yaml @@ -32,6 +32,7 @@ metadata: subjects: - kind: ServiceAccount name: {{ include "kube-hpa-scale-to-zero.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role