-
Notifications
You must be signed in to change notification settings - Fork 20
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
Switch Topology defaultLabelSelector to lib-common GetLabelSelector #286
Switch Topology defaultLabelSelector to lib-common GetLabelSelector #286
Conversation
a73f9c0
to
5951bae
Compare
Signed-off-by: Francesco Pantano <[email protected]>
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 it a bug fix or just a refactor? If the former then it would be nice to have some test coverage for it.
Not a bug, we just realized during a meeting that it would be better, when we pass the defaultLabelSelector, to match the whole set of labels associated to a deployment or a statefulset, to avoid any scheduling risk for other components matching the same label (because it was a single label). I think this simply switches to the new method, but the behavior is unchanged. |
I think we have test coverage here https://github.com/openstack-k8s-operators/placement-operator/blob/main/tests/functional/placementapi_controller_test.go#L499 |
@gibizer @mrkisaolamb are you ok to land this patch? I think I need this update due to the hard timeline, wondering if we can approve it |
I'm ok with this changes because IMO this is tested but lets wait for @gibizer rsponse |
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.
lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bogdando, fmount The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
0d4e5e1
into
openstack-k8s-operators:main
No description provided.