bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
9.06k stars 9.23k forks source link

[bitnami/rabbitmq-cluster-operator] RabbitMQ Cluster Operator Creates A PodDisruptionBudget For Disabled Message Topology Operator #30364

Open dorilahav opened 2 weeks ago

dorilahav commented 2 weeks ago

Name and Version

bitnami/rabbitmq-cluster-operator 4.3.24

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. I created an argocd application using the rabbitmq-cluster-operator helm
  2. I disabled the message topology operator using the value below
  3. I watched the operator go live but the health check is at degraded
  4. RabbitMQ is working fine, but just the health check is degraded and a PodDisruptionBudget is failed

Are you using any custom parameters or values?

msgTopologyOperator.enabled: false

What is the expected behavior?

When msgTopologyOperator.enabled is set to false in values.yaml, it should not create a PodDisruptionBudget

What do you see instead?

A PodDisruptionBudget is created and argocd application is in Degraded state because the pod count is 0

Additional information

I looked at the last version (currently 4.3.27) and it doesn't look like it's fixed

javsalgar commented 2 weeks ago

Hi!

Thank you so much for reporting, indeed, in the messaging-topology-operator/pdb.yaml file, instead of:

{{- if .Values.msgTopologyOperator.pdb.create }}

It should be:

{{- if and .Values.msgTopologyOperator.enabled .Values.msgTopologyOperator.pdb.create }}

As you discovered the issue, would you like to submit a PR?

dorilahav commented 2 weeks ago

I would love to

carrodher commented 2 weeks ago

Thank you for opening this issue and submitting the associated Pull Request. Our team will review and provide feedback. Once the PR is merged, the issue will automatically close.

Your contribution is greatly appreciated!

github-actions[bot] commented 13 hours ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.