-
Notifications
You must be signed in to change notification settings - Fork 288
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
Automate envtest setup from tests if not configured #6857
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.
/lgtm
this is great
46f6bd7
to
33fb437
Compare
Before this, running a test that required envtest without setting the KUBEBUILDER_ASSETS env var would fail. Now, if the env var is not set, the envtest setup will download the necessary assets and configure the tests to use them. This means that `go test` (on individual tests or whole packages) now works out of the box.
33fb437
to
1d7cd27
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6857 +/- ##
=======================================
Coverage 72.01% 72.01%
=======================================
Files 532 532
Lines 41644 41644
=======================================
Hits 29991 29991
Misses 9980 9980
Partials 1673 1673 ☔ View full report in Codecov by Sentry. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: g-gaston 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 |
/lgtm |
Description of changes:
Before this, running a test that required envtest without setting the KUBEBUILDER_ASSETS env var would fail. Now, if the env var is not set, the envtest setup will download the necessary assets and configure the tests to use them.
This means that
go test
(on individual tests or whole packages) now works out of the box.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.