Skip to content

[#922] controlling resources deletion #961

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

Merged
merged 3 commits into from
Mar 27, 2025

Conversation

aawoznia26
Copy link
Contributor

This closes #922

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed
Note to contributors: remember to re-generate client set if there are any API changes

Summary Of Changes

DeletionPolicy was added to Federation, Queue, Shovel, and Vhost resources. It controls whether resource in RabbitMQ cluster is removed when custom resource is deleted.
The deletionPolicy can be set to:

  • delete: The resource will be removed from RabbitMQ cluster when the custom resource deleted (default)
  • retain: The resource will remain in RabbitMQ cluster when the custom resource deleted

Additional Context

Change is result of issue 922
Corresponding PR in RabbitMQ website repo

@aawoznia26
Copy link
Contributor Author

Corresponding PR in RabbitMQ website repo

@michaelklishin
Copy link
Contributor

@aawoznia26 thank you. I have asked a few other team members to review this PR.

@Zerpet Zerpet self-assigned this Mar 26, 2025
Copy link
Member

@Zerpet Zerpet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution! I like the approach. I left some cosmetic recommendations, but overall I'm happy with the state of this PR.

@aawoznia26
Copy link
Contributor Author

Thank you @Zerpet for the review. I've applied changes in tests.

@Zerpet Zerpet added this to the v1.17.0 milestone Mar 27, 2025
@Zerpet
Copy link
Member

Zerpet commented Mar 27, 2025

I'll merge after CI passes. Thank you for this PR!

@Zerpet Zerpet merged commit 172b735 into rabbitmq:main Mar 27, 2025
7 checks passed
@aawoznia26
Copy link
Contributor Author

Hello @Zerpet and @michaelklishin,

Feature PR was merged. How do you suggest to proceed with corresponding change in website, describing new feature here? Last week we reverted PR in website, because it was merged earlier that feature PR.
Should I prepare new PR in website repo right now? Or better to wait until 1.17.0 is released?

@michaelklishin
Copy link
Contributor

@aawoznia26 we need to produce a new release — @Zerpet would be the right person to discuss that — and then revert the commits related to your website PR.

@aawoznia26
Copy link
Contributor Author

Ok, let's wait for release then. @Zerpet Do you possibly know roughly when new release is planned?

@michaelklishin
Copy link
Contributor

@aawoznia26 I should not speak for other maintainers but it should not take long. Our team decides when it ship it, so why not next week, for example :)

@aawoznia26
Copy link
Contributor Author

Ok, I will monitor releases then and remember to ask to reapply PR reverted in website repo :)

@Zerpet
Copy link
Member

Zerpet commented Apr 15, 2025

Hey, apologies for the delay in responding back. We are full focus on RabbitMQ 4.1 and its commercial counterpart. There are two PRs that would make sense to squeeze in before cutting a new release #962 #977. I've added those to the 1.17.0 milestone. Given this week is Easter break and next week I'll be out, I'd say tentatively in the first half of May we'll cut a new release.

@aawoznia26 if you don't want to be monitoring our releases, perhaps would be ok to leave the PR as draft to the website? What do you think @michaelklishin ?

@michaelklishin
Copy link
Contributor

@Zerpet the website change was merged and reverted. We need to produce a release, then the revert can be reverted, that's all there is to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Controling resource deletions
3 participants