-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add controller-gen to tools.go #564
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, thanks for the cleanup. I mostly just copied what kubebuilder dumps out and what was in CAPT
paths=./pkg/apis/... \ | ||
crd:crdVersions=v1 \ | ||
rbac:roleName=manager-role \ | ||
output:crd:dir=./config/crd/bases \ | ||
output:webhook:dir=./config/webhook \ | ||
webhook | ||
prettier --write ./config/crd/ |
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.
👍
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.
:nod: but now I have to fix ci.
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.
should be fixed now
2714c3a
to
5476143
Compare
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
5476143
to
a50aec7
Compare
This way we can use the go tool's built in pinning functionality that is already used in this project. Signed-off-by: Manuel Mendez <[email protected]>
Next commit is going to add prettier to one of the generated recipes and it's not available outside of nix-shell here. Signed-off-by: Manuel Mendez <[email protected]>
No need to have 2 different ways to manage go based tooling, we already have tools.go based install using simple `go install` calls. This also has the benefit that make has proper knowledge of the dependency on the binary and how to generate it so we don't need to do recursive make which is harmful. Signed-off-by: Manuel Mendez <[email protected]>
It is no longer needed. Signed-off-by: Manuel Mendez <[email protected]>
a50aec7
to
4ab4f75
Compare
To get more accurate numbers of timing for the actual action. Signed-off-by: Manuel Mendez <[email protected]>
Signed-off-by: Manuel Mendez <[email protected]>
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
Codecov Report
@@ Coverage Diff @@
## main #564 +/- ##
=======================================
Coverage 34.76% 34.76%
=======================================
Files 44 44
Lines 3348 3348
=======================================
Hits 1164 1164
Misses 2085 2085
Partials 99 99 Continue to review full report at Codecov.
|
Description
Modifies most of kube.mk to be better integrated with tools.go and accompanying make rules.
Why is this needed
Gets rid of recursive make calls (which are considered harmful 😄) by giving make more/better info.
Also removes code that is no longer necessary (and some that never was, envsubst in kube.mk).
How Has This Been Tested?
I ran
make generate