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

feat(makefile): improve tool installation and kubebuilder asset installation process #604

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

rriski
Copy link
Contributor

@rriski rriski commented Jan 25, 2024

  • Align tool installation with kubebuilder v4 template: https://github.com/kubernetes-sigs/kubebuilder/blob/165af70e87848677a039cd0cd87cc67c545d983c/testdata/project-v4/Makefile
  • Install kubebuilder asset in envtest target. This makes it easier to setup IDE integrations to point to the correct KUBEBUILDER_ASSETS env var. Previously, the assets were installed on demand as part of the test target. If one wanted to install kubebuilder assets they would have to either a) manually deduce the correct command and run it themselves ($PWD/bin/setup-envtest use 1.25.* --bin-dir $PWD/bin -p path) or b) uncomment the go test.. command from the test target to get the assets installed.

This commit makes it easier to point IDE KUBEBUILDER_ASSETS env vars to the
correct path. Previously, one would have to uncomment the `go test...` line in
the `test` target to get kubebuilder assets installed in $LOCALBIN.
@rriski rriski requested review from a team and byashimov January 25, 2024 07:57
@rriski
Copy link
Contributor Author

rriski commented Jan 25, 2024

tests

Copy link
Contributor

@byashimov byashimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@byashimov byashimov merged commit 3abe303 into main Jan 25, 2024
8 checks passed
@byashimov byashimov deleted the rriski-update-makefile-tool-installation branch January 25, 2024 10:08
@Serpentiel Serpentiel added the enhancement New feature or request label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants