-
Notifications
You must be signed in to change notification settings - Fork 300
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
Trigger NEG syncers to sync on Node Topology CRD changes. #2677
base: master
Are you sure you want to change the base?
Conversation
40a6d13
to
ac07d11
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sawsa307 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
a7658e5
to
8f0a499
Compare
8f0a499
to
8f92fac
Compare
/retest |
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.
Have left a few comments and have one additional one:
Have we considered starting a filtered informer for NodeTopology which only informs changes to a specific resource? You can make the name of that resource pluggable through a flag to get some flexibility.
I can see why choosing the option of having an un-filtered informer might offer more flexibility for future use cases, where things might work naturally if you ever have multiple NodeTopology resources. But on the other hand, I also feel that if such a case actually arises, it would warrant some additional thought and verification (like maybe not syncing all syncers for each NodeTopology resource? or something like that)
This specific aspect may benefit from getting an additional opinion (@swetharepakula)
* Add NodeInformer to NewController, and add fake informer to test cases.
8f92fac
to
c9d58d2
Compare
b95d8ae
to
6ea54f6
Compare
Discussed offline, and created #2694. We only care about update on the CR named default. |
6ea54f6
to
3b273f4
Compare
* When zones or subnets of a cluster changes, all syncers react to this change by either creating additional NEGs in new zone/subnet, or mark NEGs as Inactive/To-be-deleted.
3b273f4
to
385b055
Compare
/assign @swetharepakula
/assign @gauravkghildiyal