-
Notifications
You must be signed in to change notification settings - Fork 72
Add user limits. #962
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
Add user limits. #962
Conversation
03deb30
to
70e1239
Compare
…operator into user-limits
e2e9c07
to
5fcebac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious about clearing the user limits. It looks like (I haven't tried) if a user limit is set, and then the UserLimits
field is set to an empty struct, the declare logic would simply ignore the limits, because the zero value of int32
is 0
and our logic ignores any values equal or below zero.
One option would be to set the UserLimit
field as a pointer, so that we can differentiate between the zero value and not set at all (nil
). Note that 0
for limits is a valid value in RabbitMQ.
@Zerpet it now handles the 0 and negative cases, as well as the change of limits. |
This closes #960
Summary Of Changes
Adds optional Limits for connections and channels to the user spec.