-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(ILB): Prevent deletion of nodes with empty zone labels during lab…
…el patching Previously, new nodes were created with all topology labels present, including the zone label. However, recently, labels have been patched/updated on the node resource *after* the resource is created. This can result in nodes having an empty zone field when initially added to an instance group. The Internal Load Balancer controller was incorrectly removing these nodes with empty zone labels from their assigned instance groups. This occurred because the controller interpreted nodes with empty zones as not belonging to any zone. This commit fixes the issue by: - Storing nodes with empty zones during node processing. - Preventing the controller from removing these nodes during zone processing. This ensures that new nodes with initially empty zone labels, due to the asynchronous label patching, are not prematurely deleted from their instance groups. The fix has been verified by adding a node with an empty zone label to an instance group and confirming that it is not deleted after a controller sync.
- Loading branch information
Showing
2 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters