Create TopologyProvider for NEG controller's syncers#3121
Conversation
|
Hi @anyush. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test 🥔 |
TortillaZHawaii
left a comment
There was a problem hiding this comment.
small changes required, I hope Vadym catches anything NEG domain related
832220b to
a280f9e
Compare
|
/retest |
690e3d4 to
eec36be
Compare
|
/retest |
|
LGTM |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: anyush, midavadim The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
… controller, so it can be customized later
…ting nodes for every per-subnet loops
…return true for new/removed subnets; rename isZoneChange to isTopologyChange
eec36be to
62a3dd9
Compare
Create interface for providing target subnets/zones where NEGs should be created/managed by NEG controller, so it will be possible to provide these in future APIs instead of solely rely on the NodeTopology CR.
Also makes zones list subnet-aware for syncer - for different subnets different subsets of zones can be provided.
EDIT:
Overview:
ZoneGetteraccessed throughTopologyProviderby thetransactionSyncerTopologyProvideris subnet-dependent (possible to have different zones for different subnets)transactionSyncer.IsZoneChangechecks zones per subnet, which leads to verifying subnets' change as well -transactionSyncer.IsSubnetChangeremoved,transactionSyncer.IsZoneChangeupdated and renamed intotransactionSyncer.IsLocationChange