-
Notifications
You must be signed in to change notification settings - Fork 216
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
MGMT-4261 Agent CR and ACI cleanup when deleting CD #1606
MGMT-4261 Agent CR and ACI cleanup when deleting CD #1606
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nmagnezi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
839e545
to
9be4d5a
Compare
/hold |
9be4d5a
to
d4bc572
Compare
internal/controller/controllers/clusterdeployments_controller.go
Outdated
Show resolved
Hide resolved
d4bc572
to
f6b77cb
Compare
/unhold |
f6b77cb
to
2932f0a
Compare
internal/controller/controllers/clusterdeployments_controller.go
Outdated
Show resolved
Hide resolved
2932f0a
to
a73b8fe
Compare
/hold |
7083470
to
d4b543a
Compare
/unhold |
d4b543a
to
b0b7824
Compare
internal/controller/controllers/clusterdeployments_controller.go
Outdated
Show resolved
Hide resolved
internal/controller/controllers/clusterdeployments_controller.go
Outdated
Show resolved
Hide resolved
internal/controller/controllers/clusterdeployments_controller.go
Outdated
Show resolved
Hide resolved
b0b7824
to
1d6633e
Compare
/assign @rollandf |
internal/controller/controllers/clusterdeployments_controller.go
Outdated
Show resolved
Hide resolved
d9199fc
to
9e52e87
Compare
/retest |
/test e2e-metal-assisted-kube-api |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
9e52e87
to
746fd31
Compare
Rebased to resolve conflicts. |
746fd31
to
ec398e7
Compare
/test subsystem-kubeapi-aws |
clusterdeployments_controller: When a CD CR gets deleted, the controller will place a finalizer to trigger a pre-deletion cleanup. The cleanup includes ACI deletion, which will place a finalizer on ACI. ACI finalizer includes backend-cluster deregister and deletion of the cluster agent resources. As for subsystem tests: 1. Tests will now assert for agent deletion per ACI removal. 2. Tests will now assert for agent deletion and ACI per CD removal. 3. Each test will now use a unique CD and ACI CR name - to provide better test isolation. This was also done because deletion via finalizers takes an additional reconcile to be fully deleted. 4. Per 2, and to avoid any cleanup bugs, the cleanup done for subsystem tests (AfterEach) is now followed up by verifyCleanUP P.S. Note that this PR does not cover host deregister upon Agent CR deletion, which was added in openshift#1642
ec398e7
to
fb36ee6
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: filanov, nmagnezi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
clusterdeployments_controller:
When a CD CR gets deleted, the controller will place a
finalizer to trigger a pre-deletion cleanup.
The cleanup includes ACI deletion, which will place a finalizer on ACI.
ACI finalizer includes backend-cluster deregister and deletion of the
cluster agent resources.
As for subsystem tests:
test isolation. This was also done because deletion via finalizers
takes an additional reconcile to be fully deleted.
tests (AfterEach) is now followed up by verifyCleanUP
P.S.
Note that this PR does not cover host deregister upon Agent CR deletion,
which was added in #1642