Skip to content
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

Merged
merged 2 commits into from
May 10, 2024
Merged

Update controller-gen, fix make test #581

merged 2 commits into from
May 10, 2024

Conversation

blampe
Copy link
Contributor

@blampe blampe commented May 10, 2024

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.

@blampe blampe requested a review from rquitales May 10, 2024 20:36
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
Copy link
Contributor Author

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 ./...
Copy link
Contributor Author

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...

Copy link
Member

@rquitales rquitales left a 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.

@blampe blampe merged commit ee555a4 into master May 10, 2024
5 checks passed
@blampe blampe deleted the blampe/make-test branch May 10, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants