-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When building the initial container MoID list, include the IDs so that we can match the Add() and Remove() of the same ID. We had a bug here in that if the Zone was initially added to a NS when at start up time, any later removal of the Zone from a NS would remove the watch of that Zone across all namespaces. This allows the watcher Add() and Remove() to be idempotent which is needed for some infra Zone controller described later. Tweak how the infra Zone controller handles the finalizer. The VC watcher itself is ephemeral since it will go away when the VC client is closed. But we need the Zone finalizer so that we can remove it from the watcher when the Zone goes away. Therefore, call Add() or Remove() on the Zone regardless if the finalizer was already present or not. Better handle a Zone with a stale FolderMoID: if a folder does not exist on VC, the watcher will fail to start. We filter out invalid container MoIDs to the watcher; the Zone controller will later keep retrying to add that FolderMoID to the watcher. Much of change is fallout from 14c1ac3 when we changed the VM watcher service to not os.Exit() whenever the watcher could not be started.
- Loading branch information
Bryan Venteicher
committed
Jan 14, 2025
1 parent
5bd4b7a
commit 90c3aed
Showing
6 changed files
with
270 additions
and
84 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
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
Oops, something went wrong.