From 4f7db5288b1d20b6b1b9e0a9e1e8b1cdd0da8557 Mon Sep 17 00:00:00 2001 From: jiangpengcheng Date: Thu, 5 Dec 2024 14:46:38 +0800 Subject: [PATCH 1/2] Bump chart to 0.6.5 --- charts/pulsar-resources-operator/Chart.yaml | 4 ++-- charts/pulsar-resources-operator/tests/deployment_test.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/pulsar-resources-operator/Chart.yaml b/charts/pulsar-resources-operator/Chart.yaml index cb9ef382..1861973d 100644 --- a/charts/pulsar-resources-operator/Chart.yaml +++ b/charts/pulsar-resources-operator/Chart.yaml @@ -30,13 +30,13 @@ 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.4 +version: v0.6.5 # 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 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v0.6.4" +appVersion: "v0.6.5" # This is a semver range of compatible Kubernetes versions. Helm will validate the version # constraints when installing the chart and fail if the cluster runs an unsupported Kubernetes version diff --git a/charts/pulsar-resources-operator/tests/deployment_test.yaml b/charts/pulsar-resources-operator/tests/deployment_test.yaml index 998e4152..a6a6c515 100644 --- a/charts/pulsar-resources-operator/tests/deployment_test.yaml +++ b/charts/pulsar-resources-operator/tests/deployment_test.yaml @@ -39,11 +39,11 @@ tests: - it: should update the image version successfully set: - image.manager.tag: v0.6.4 + image.manager.tag: v0.6.5 asserts: - equal: path: spec.template.spec.containers[0].image - value: docker.io/streamnative/pulsar-resources-operator:v0.6.4 + value: docker.io/streamnative/pulsar-resources-operator:v0.6.5 - it: should update the replicas successfully set: From ae87bc164d7549f73eb8d2f8790ac3bb43170ba5 Mon Sep 17 00:00:00 2001 From: jiangpengcheng Date: Fri, 6 Dec 2024 09:35:09 +0800 Subject: [PATCH 2/2] Add missing permissions for chart --- .../templates/role.yaml | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/charts/pulsar-resources-operator/templates/role.yaml b/charts/pulsar-resources-operator/templates/role.yaml index 417bb135..694a96e1 100644 --- a/charts/pulsar-resources-operator/templates/role.yaml +++ b/charts/pulsar-resources-operator/templates/role.yaml @@ -292,4 +292,29 @@ rules: - get - patch - update - +- apiGroups: + - resource.streamnative.io + resources: + - pulsarnsisolationpolicies + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - resource.streamnative.io + resources: + - pulsarnsisolationpolicies/finalizers + verbs: + - update +- apiGroups: + - resource.streamnative.io + resources: + - pulsarnsisolationpolicies/status + verbs: + - get + - patch + - update