-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
✨ [e2e framework]: add skip-resource-cleanup flag to allow skipping any clean up #2296
✨ [e2e framework]: add skip-resource-cleanup flag to allow skipping any clean up #2296
Conversation
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.
I have two concern about this PR, mostly for lack of deep knowledge of this part of the codebase:
- Is there a way to make the new flag accessible via the
Make run-e2e
target? - Is it possible to make
mgmt.Teardown
andensureDockerArtifactsDeleted
to behave according to the flag instead of wrapping those calls into an if statement?
I agree with @fabriziopandini's concerns. However, @SataQiu, take a look here #2294 It might be easier to implement a skip when this PR lands |
Would love to get this feature in. Do you think the refactor has helped ease the implementation here at all? |
82d08c1
to
96751ee
Compare
The refactor is very good! Some checks can be done within the framework. 👍 |
@@ -0,0 +1,29 @@ | |||
/* |
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.
add options
package to avoid import cycle
/test pull-cluster-api-capd-e2e |
/milestone v0.3.0 |
96751ee
to
7ee77ca
Compare
Nice! Thanks for the refactor After we use this for a bit we should see if it makes sense to add an option to the config file, but for now this is totally fine. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chuckha, SataQiu 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:
Feature: add
-skip-resource-cleanup
flag to allow skipping any clean upNow we can run e2e test like this to skip cleanup:
or
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2268