-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bugfix: entitlements multiplan #62
Conversation
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.
Is this the right behaviour? I would expect the controller to return an error in case the ServicePlan of an Entitlement could not be found, am I missing something here?
Any logic being touched here refers to the |
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.
Thanks for clarifying! LGTM
Description
This fixes a bug that caused multiple entitlements with same
serviceName
but differentplanName
to get stuck in unhealthy state. It was caused by some false error handling in the observation logic.Along with the fix I refactored and documented the related code a little to make it more readable since it was highly confusing. Also cleaned out some duplicated controller logic.
Unittests were added to properly validate the lookup of assigned services.