-
Notifications
You must be signed in to change notification settings - Fork 537
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
Use controller-runtime setup-envtest instead of fetch_ext_bins.sh #3086
Comments
/triage accepted |
@sedefsavas: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed 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. |
/assign |
@Skarlso is there any update on this issue? |
Uh so sorry got bogged down with fever and life. I'm gonna do this this week or weekend. 😔😊 Thanks for the ping! |
yay, got covid, so was out with high fever for most of the week. :/ But hopefully I can pick this up today. :) |
Hope you are better. This is not urgent at all, take care. |
Thanks, yeah it's better today. :) |
@sbueringer Hi! Are you sure that this is the right link? https://github.com/kubernetes-sigs/cluster-api/blob/main/Makefile#L437-L441 This is linking to a docker build make target... I think you meant to use 84-86 maybe? https://github.com/kubernetes-sigs/cluster-api/blob/main/Makefile#L81-L84 Or did this change since? I guess the Makefile was updated or stuff was moved, right? |
ah you probably meant this part: .PHONY: test
test: $(SETUP_ENVTEST) ## Run unit and integration tests
KUBEBUILDER_ASSETS="$(KUBEBUILDER_ASSETS)" go test ./... $(TEST_ARGS) |
Ah, yeah okay, I know what to do know. :) |
@Skarlso Exactly. I should have used a link based on a commit :). Our Makefile changed quite a bit recently. |
No worries. :) I found it in the end. :) Now I'm comparing if we do anything extra in |
Looks like in CAPI we're not calling it at all. I guess so we "cache" between test runs |
There were some interesting things here. Some deprecation, some function wasn't called at all too. ¯\_(ツ)_/¯. I hope my changes will work. :D I also had to add a |
/kind feature
Hey folks,
just wanted to make you aware of that there is a tool by controller-runtime which can be used to setup the controller-runtime envtest binaries (https://github.com/kubernetes-sigs/controller-runtime/tree/master/tools/setup-envtest).
It's already used in core CAPI: https://github.com/kubernetes-sigs/cluster-api/blob/main/Makefile#L437-L441
I think this could be a good first issue, if you want to adopt setup-envtest.
Environment:
kubectl version
): -/etc/os-release
): -The text was updated successfully, but these errors were encountered: