From 59a4e0828dbae8dd90890f1cfbb058f76a074465 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Fri, 6 Sep 2024 14:50:19 +0200 Subject: [PATCH] RabbitMQ: fix accessing Kubernetes API when netwrok-policies are enabled (#337) Signed-off-by: Andrei Kvapil Signed-off-by: Andrei Kvapil --- packages/apps/rabbitmq/Chart.yaml | 2 +- packages/apps/rabbitmq/templates/rabbitmq.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/apps/rabbitmq/Chart.yaml b/packages/apps/rabbitmq/Chart.yaml index b8a80a3a..71576874 100644 --- a/packages/apps/rabbitmq/Chart.yaml +++ b/packages/apps/rabbitmq/Chart.yaml @@ -16,7 +16,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: 0.4.0 +version: 0.4.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/packages/apps/rabbitmq/templates/rabbitmq.yaml b/packages/apps/rabbitmq/templates/rabbitmq.yaml index a48a92f9..5392c4ec 100644 --- a/packages/apps/rabbitmq/templates/rabbitmq.yaml +++ b/packages/apps/rabbitmq/templates/rabbitmq.yaml @@ -12,6 +12,14 @@ spec: type: LoadBalancer {{- end }} + override: + statefulSet: + spec: + template: + metadata: + labels: + policy.cozystack.io/allow-to-apiserver: "true" + persistence: {{- with .Values.storageClass }} storageClassName: {{ . }}