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

feat: Allow policy to apply to specific queue types (classic/quorum) & streams #668

Merged
merged 2 commits into from
Sep 11, 2023
Merged

feat: Allow policy to apply to specific queue types (classic/quorum) & streams #668

merged 2 commits into from
Sep 11, 2023

Conversation

nickstamat
Copy link
Contributor

@nickstamat nickstamat commented Sep 8, 2023

This closes #667.

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

This PR adds classic_queues, quorum_queues, streams to the list of supported values for the ApplyTo field of Policy.

Additional Context

As far as I could see, no other changes are required for this functionality. This is just going through a kubernetes-side validation, and the michaelklishin/rabbit-hole client simply accepts any string for the ApplyTo field. Please correct me if I'm wrong, I'm not familiar with the entire codebase.

As of RabbitMQ v3.12.0, policies can be defined to only apply to
specific queue types. This commit allows setting those types on the
applyTo field of a Policy.
@vmwclabot
Copy link

@nickstamat, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

@vmwclabot
Copy link

@nickstamat, we have received your signed contributor license agreement. The review is usually completed within a week, but may take longer under certain circumstances. Another comment will be added to the pull request to notify you when the merge can proceed.

@nickstamat nickstamat marked this pull request as ready for review September 8, 2023 13:31
@vmwclabot
Copy link

@nickstamat, VMware has approved your signed contributor license agreement.

@MirahImage
Copy link
Member

Thanks for the contribution! We noticed that streams is missing from the options, but otherwise things look good.

@nickstamat nickstamat changed the title feat: Allow policy to apply to specific queue types (classic/quorum) feat: Allow policy to apply to specific queue types (classic/quorum) & streams Sep 11, 2023
@nickstamat
Copy link
Contributor Author

@MirahImage Added streams and updated PR to reflect the change.

@MirahImage MirahImage merged commit 685153f into rabbitmq:main Sep 11, 2023
5 checks passed
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.

Support applying policies on specific queue type (classic/quorum)
3 participants