From 281f598f4ccaa18f46307bb3484224f1c663c7e6 Mon Sep 17 00:00:00 2001 From: Eric Shen Date: Wed, 18 Sep 2024 14:11:53 +0800 Subject: [PATCH] fix: leader election role template issue (#256) Signed-off-by: ericsyh (cherry picked from commit 56722c1714e815a3c2a643d1f0ec59ed96437873) --- charts/pulsar-resources-operator/Chart.yaml | 2 +- .../templates/leader_election_role.yaml | 1 + .../templates/leader_election_role_binding.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/pulsar-resources-operator/Chart.yaml b/charts/pulsar-resources-operator/Chart.yaml index d8b3e09..647bbc4 100644 --- a/charts/pulsar-resources-operator/Chart.yaml +++ b/charts/pulsar-resources-operator/Chart.yaml @@ -30,7 +30,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: v0.6.0 +version: v0.6.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/pulsar-resources-operator/templates/leader_election_role.yaml b/charts/pulsar-resources-operator/templates/leader_election_role.yaml index 1814ac7..96e585f 100644 --- a/charts/pulsar-resources-operator/templates/leader_election_role.yaml +++ b/charts/pulsar-resources-operator/templates/leader_election_role.yaml @@ -18,6 +18,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "pulsar-resources-operator.roleLeaderElectionName" . }} + namespace: {{ include "pulsar-resources-operator.namespace" .}} rules: - apiGroups: - "" diff --git a/charts/pulsar-resources-operator/templates/leader_election_role_binding.yaml b/charts/pulsar-resources-operator/templates/leader_election_role_binding.yaml index 829271a..99e2573 100644 --- a/charts/pulsar-resources-operator/templates/leader_election_role_binding.yaml +++ b/charts/pulsar-resources-operator/templates/leader_election_role_binding.yaml @@ -17,6 +17,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: '{{ include "pulsar-resources-operator.fullname" . }}-leader-election-rolebinding' + namespace: {{ include "pulsar-resources-operator.namespace" .}} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role