-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <[email protected]>
- Loading branch information
1 parent
2e0eefe
commit 1c97945
Showing
35 changed files
with
456 additions
and
823 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,10 +146,15 @@ $(controller_gen_targets): $(GO_ENV_REQUISITES) hack/tools/boilerplate.go.txt ha | |
touch -- '$@' | ||
|
||
# Run register-gen for each API group version. | ||
# Usually register-gen should should be: | ||
# k8s.io/code-generator/cmd/register-gen@v$(kubernetes_version:1.%=0.%) | ||
# However, due to https://github.com/kubernetes/kubernetes/issues/129290 in 1.32.0 we | ||
# need to hardcode it to 0.31.3 instead of the appropriate 0.32.0. | ||
register_gen_targets := $(foreach gv,$(api_group_versions),pkg/apis/$(gv)/zz_generated.register.go) | ||
codegen_targets += $(register_gen_targets) | ||
$(register_gen_targets): $(GO_ENV_REQUISITES) hack/tools/boilerplate.go.txt embedded-bins/Makefile.variables | ||
CGO_ENABLED=0 $(GO) run k8s.io/code-generator/cmd/register-gen@v$(kubernetes_version:1.%=0.%) \ | ||
CGO_ENABLED=0 $(GO) run \ | ||
k8s.io/code-generator/cmd/[email protected] \ | ||
--go-header-file=hack/tools/boilerplate.go.txt \ | ||
--output-file='_$(notdir $@).tmp' \ | ||
'github.com/k0sproject/k0s/$(dir $@)' || { \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.