-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: make gen-code work properly (#509)
* fix gen-code Signed-off-by: zirain <zirain2009@gmail.com> * lint license Signed-off-by: zirain <zirain2009@gmail.com> * add comment Signed-off-by: zirain <zirain2009@gmail.com> * fix REPO_ROOT Signed-off-by: zirain <zirain2009@gmail.com> * add kustomize build Signed-off-by: zirain <zirain2009@gmail.com> * remove usage of util::install_tools Signed-off-by: zirain <zirain2009@gmail.com> * nit Signed-off-by: zirain <zirain2009@gmail.com> * rename to TOOLS_DIR Signed-off-by: zirain <zirain2009@gmail.com> * rename to HACK_DIR Signed-off-by: zirain <zirain2009@gmail.com> * fix gen-thanos Signed-off-by: zirain <zirain2009@gmail.com> --------- Signed-off-by: zirain <zirain2009@gmail.com>
- Loading branch information
Showing
16 changed files
with
133 additions
and
132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,6 @@ node_modules/ | |
# ignore all local dev files | ||
.vscode/ | ||
.local/ | ||
|
||
.tools | ||
.gopath |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Go tools directory holds the binaries of Go-based tools. | ||
GO := $(shell which go) | ||
TOOLS_DIR ?= $(PWD)/.tools | ||
|
||
# Catch all rules for Go-based tools. | ||
$(GO_TOOLS_DIR)/%: | ||
@GOBIN=$(TOOLS_DIR) $(GO) install $($(notdir $@)@v) | ||
|
||
# Go-based tools. | ||
golangci-lint := $(TOOLS_DIR)/golangci-lint | ||
client-gen := $(TOOLS_DIR)/client-gen | ||
informer-gen := $(TOOLS_DIR)/informer-gen | ||
lister-gen := $(TOOLS_DIR)/lister-gen | ||
register-gen := $(TOOLS_DIR)/register-gen | ||
deepcopy-gen := $(TOOLS_DIR)/deepcopy-gen | ||
controller-gen := $(TOOLS_DIR)/controller-gen | ||
kustomize := $(TOOLS_DIR)/kustomize | ||
jb := $(TOOLS_DIR)/jb | ||
gojsontoyaml := $(TOOLS_DIR)/gojsontoyaml | ||
jsonnet := $(TOOLS_DIR)/jsonnet | ||
|
||
gen-crd-api-reference-docs := $(TOOLS_DIR)/gen-crd-api-reference-docs | ||
|
||
golangci-lint@v := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2 | ||
client-gen@v := k8s.io/code-generator/cmd/client-gen@v0.25.2 | ||
informer-gen@v := k8s.io/code-generator/cmd/informer-gen@v0.25.2 | ||
lister-gen@v := k8s.io/code-generator/cmd/lister-gen@v0.25.2 | ||
register-gen@v := k8s.io/code-generator/cmd/register-gen@v0.25.2 | ||
deepcopy-gen@v := k8s.io/code-generator/cmd/deepcopy-gen@v0.25.2 | ||
controller-gen@v := sigs.k8s.io/controller-tools/cmd/controller-gen@v0.8.0 | ||
kustomize@v := sigs.k8s.io/kustomize/kustomize/v4@v4.5.5 | ||
jb@v := github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@v0.5.1 | ||
gojsontoyaml@v := github.com/brancz/gojsontoyaml@v0.1.0 | ||
jsonnet@v := github.com/google/go-jsonnet/cmd/jsonnet@v0.18.0 | ||
|
||
gen-crd-api-reference-docs@v := github.com/ahmetb/gen-crd-api-reference-docs@45bac9a # 2023-03-28 |
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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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.