-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): bump k8s.io/client-go, k8s.io/apimachinery, k8s.io/api, … (
#1251) * build(deps): bump k8s.io/client-go, k8s.io/apimachinery, k8s.io/api, sigs.k8s.io/controller-runtime,github.com/onsi/gomega * fix: update ResourceRequirements to VolumeResourceRequirements for storage Signed-off-by: jiuxia211 <[email protected]> * update dockerfile Signed-off-by: jiuxia211 <[email protected]> * fix: generate-groups.sh removed error Signed-off-by: jiuxia211 <[email protected]> * update envtest for Makefile Signed-off-by: jiuxia211 <[email protected]> * fix: make verify-coodegen error Signed-off-by: jiuxia211 <[email protected]> * update go version of workflows Signed-off-by: jiuxia211 <[email protected]> * fix: unsuitable go version Signed-off-by: jiuxia211 <[email protected]> --------- Signed-off-by: jiuxia211 <[email protected]>
- Loading branch information
Showing
53 changed files
with
13,477 additions
and
3,128 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
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 |
---|---|---|
|
@@ -63,10 +63,17 @@ vet: ## Run go vet against code. | |
go vet ./... | ||
|
||
ENVTEST_ASSETS_DIR=$(shell pwd)/testbin | ||
test: manifests generate fmt vet ## Run tests. | ||
mkdir -p ${ENVTEST_ASSETS_DIR} | ||
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.8.3/hack/setup-envtest.sh | ||
source ${ENVTEST_ASSETS_DIR}/setup-envtest.sh; fetch_envtest_tools $(ENVTEST_ASSETS_DIR); setup_envtest_env $(ENVTEST_ASSETS_DIR); go test ./apis/... -coverprofile cover.out | ||
|
||
install-setup-envtest: ## Install the setup-envtest tool if it is not already installed | ||
if ! command -v setup-envtest &> /dev/null; then \ | ||
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest; \ | ||
fi | ||
|
||
setup-envtest: install-setup-envtest ## Download and set up the envtest binary | ||
source <(setup-envtest use -p env) | ||
|
||
test: manifests generate fmt vet setup-envtest ## Run tests. | ||
go test ./apis/... -coverprofile cover.out | ||
|
||
##@ Build | ||
|
||
|
@@ -159,9 +166,9 @@ KUSTOMIZE = $(shell pwd)/bin/kustomize | |
kustomize: go-deps ## Download kustomize locally if necessary. | ||
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected]) | ||
|
||
CODE_GENERATOR = $(shell go env GOPATH)/pkg/mod/k8s.io/code-generator@v0.26.1 | ||
CODE_GENERATOR = $(shell go env GOPATH)/pkg/mod/k8s.io/code-generator@v0.30.3 | ||
code-generator: go-deps ## Download code-generator locally if necessary | ||
$(call go-get-tool,$(CODE_GENERATOR),k8s.io/code-generator@v0.26.1) | ||
$(call go-get-tool,$(CODE_GENERATOR),k8s.io/code-generator@v0.30.3) | ||
|
||
# go-get-tool will 'go get' any package $2 and install it to $1. | ||
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) | ||
|
@@ -178,7 +185,7 @@ rm -rf $$TMP_DIR ;\ | |
endef | ||
|
||
go-deps: # download go dependencies | ||
go get k8s.io/code-generator@v0.26.1 | ||
go get k8s.io/code-generator@v0.30.3 | ||
go mod download | ||
|
||
docs-update: # update api docs | ||
|
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.