-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MGMT-4261 Agent CR cleanup when deleting clusterDeployment
clusterdeployments_controller: When a clusterDeployment CR gets deleted, the controller detects the relevant agents and pushes updates to the agent_controller, which in turn will reconcile and delete them. agent_controller: The controller will delete agent CR if one of the following scenarios takes place during reconcile: 1. No clusterDeployment was found for the agent. 2. No cluster (backend) was found for the agent. 3. Agent does not belong to the cluster retrieved from the backend, which may happen with newly created day2 clusters. P.S. Note that this PR does not cover host dergister upon Agent CR deletion, however hosts get cleaned up from the backend for the above-mentioned scenarios.
- Loading branch information
Nir Magnezi
committed
Apr 28, 2021
1 parent
d10163a
commit f6b77cb
Showing
4 changed files
with
87 additions
and
24 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