-
Notifications
You must be signed in to change notification settings - Fork 58
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
Update controller-gen, fix make test
#581
Conversation
controller-gen crd paths="$apis_dir/..." crd:crdVersions=v1 output:crd:dir="$deploy_dir" | ||
|
||
# Manually overwrite until issue is resolved in controller-tools: | ||
# https://git.io/JJsjs |
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.
This issue was resolved and the workaround no longer appears necessary.
@@ -48,7 +48,7 @@ push-image: | |||
|
|||
test: codegen download-test-deps | |||
KUBEBUILDER_ASSETS="$(shell setup-envtest --use-env use -p path)" \ | |||
ginkgo -nodes=${TEST_NODES} --randomize-all ./test/... | |||
go run github.com/onsi/ginkgo/v2/ginkgo -nodes=${TEST_NODES} --randomize-all -v ./... |
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.
We weren't running unit tests under pkg
...
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.
Looks like I made a tracking issue for improving tests awhile back that captured the fact we're not running unit tests: #447. Also weird that make test
doesn't work locally for you as well. I can't seem to repro that myself, but it doesn't hurt to update controller-gen.
This PR has been shipped in release v2.0.0. |
make test
was panicking locally with controller-gen v0.9.2.This updates controller-gen to v0.15, regenerates CRDs, and fixes a few other things to get
make test
runnable locally.