Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dorilahav opened this issue Nov 8, 2024 · 3 comments · May be fixed by #30445
Assignees
Labels
rabbitmq-cluster-operator tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@dorilahav
Copy link

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

@dorilahav dorilahav added the tech-issues The user has a technical issue about an application label Nov 8, 2024
@github-actions github-actions bot added the triage Triage is needed label Nov 8, 2024
@javsalgar javsalgar changed the title RabbitMQ Cluster Operator Creates A PodDisruptionBudget For Disabled Message Topology Operator [bitnami/rabbitmq-cluster-operator] RabbitMQ Cluster Operator Creates A PodDisruptionBudget For Disabled Message Topology Operator Nov 12, 2024
@javsalgar
Copy link
Contributor

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
Copy link
Author

I would love to

@carrodher
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rabbitmq-cluster-operator tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
3 participants