From 2f75acb5fdb605bb7ad3d75a6e9b64d909d1eef7 Mon Sep 17 00:00:00 2001 From: Robert Wunderer Date: Thu, 26 Sep 2024 16:20:44 +0200 Subject: [PATCH] Add missing namespace to clusterrolebinding --- charts/ps-operator/Chart.yaml | 2 +- charts/ps-operator/templates/role-binding.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/ps-operator/Chart.yaml b/charts/ps-operator/Chart.yaml index 144851a..a432ba0 100644 --- a/charts/ps-operator/Chart.yaml +++ b/charts/ps-operator/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "0.8.0" description: A Helm chart for Deploying the Percona Operator for MySQL (based on Percona Server for MySQL) name: ps-operator home: https://docs.percona.com/percona-operator-for-mysql/ps/ -version: 0.8.1 +version: 0.8.2 maintainers: - name: tplavcic email: tomislav.plavcic@percona.com diff --git a/charts/ps-operator/templates/role-binding.yaml b/charts/ps-operator/templates/role-binding.yaml index ce88eb8..face6ee 100644 --- a/charts/ps-operator/templates/role-binding.yaml +++ b/charts/ps-operator/templates/role-binding.yaml @@ -58,4 +58,7 @@ roleRef: subjects: - kind: ServiceAccount name: {{ include "ps-operator.fullname" . }} + {{- if .Values.watchAllNamespaces }} + namespace: {{ .Release.Namespace }} + {{- end }} {{- end }}