-
Notifications
You must be signed in to change notification settings - Fork 95
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
🐛 Protect Metal3Data and Metal3DataClaim with Finalizers #1478
🐛 Protect Metal3Data and Metal3DataClaim with Finalizers #1478
Conversation
b4c9431
to
b7cad4e
Compare
b7cad4e
to
4985eb8
Compare
4985eb8
to
904d9c0
Compare
@maxrantil: The specified target(s) for
Use
In response to this:
Instructions 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/test-infra repository. |
/test-centos-e2e-integration-main |
/test-ubuntu-integration-main |
1 similar comment
/test-ubuntu-integration-main |
c6aea95
to
1d96317
Compare
/test-centos-e2e-integration-main |
1d96317
to
145b864
Compare
dffc5b7
to
d2a3290
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few issues with the tests. The rest of it looks good
3557159
to
6aa659a
Compare
Signed-off-by: Lennart Jern <[email protected]> Co-authored-by: Max Rantil <[email protected]>
4b0931e
to
fe486bb
Compare
The Metal3Machine manager is responsible for creating and deleting the Metal3DataClaims used by the Metal3Machines. To make sure that the Metal3DataClaim is protected (and cleaned up properly), we now add a finalizer when the Metal3DataClaim is created and remove it when cleaning up. Similarly, the Metal3DataTemplate manager is responsible for the Metal3Data. It now also adds a finalizer when creating Metal3Data and removes it when cleaning up.
|
/test metal3-ubuntu-e2e-integration-test-main |
/test metal3-ubuntu-e2e-integration-test-main |
35181ed
to
5a170d6
Compare
Updated with a second commit that checks if the consumer is gone before proceeding with the deletion. |
/test metal3-ubuntu-e2e-integration-test-main |
1 similar comment
/test metal3-ubuntu-e2e-integration-test-main |
Before cleaning up Metal3Data, check that the Metal3DataClaim (consumer) is gone. This commit also renames some of the test objects and variables to make them easier to understand and adds a constant for "Metal3Machine". Signed-off-by: Lennart Jern <[email protected]>
5a170d6
to
acb35f3
Compare
Discussed offline and decided to skip going through owner references for the Metal3DataClaim. We are checking that the claim is gone before deleting the data though. |
/test metal3-ubuntu-e2e-integration-test-main |
/cc @Sunnat @kashifest |
@lentzi90: GitHub didn't allow me to request PR reviews from the following users: sunnat. Note that only metal3-io members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions 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/test-infra repository. |
/cc @Sunnatillo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Centos tests are unfortunately broken at the moment... |
/test metal3-centos-e2e-integration-test-main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kashifest 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 |
What this PR does / why we need it:
As the title describes.
Which issue(s) this PR fixes
Fixes #1356