forked from openshift/sriov-network-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into sync-20240801
- Loading branch information
Showing
8,004 changed files
with
2,904 additions
and
2,219,896 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
|
@@ -27,7 +27,8 @@ WEBHOOK_IMAGE_TAG?=$(IMAGE_REPO)/$(APP_NAME)-webhook:latest | |
MAIN_PKG=cmd/manager/main.go | ||
export NAMESPACE?=openshift-sriov-network-operator | ||
export WATCH_NAMESPACE?=openshift-sriov-network-operator | ||
export GOFLAGS+=-mod=vendor | ||
export HOME?=$(PWD) | ||
export GOPATH?=$(shell go env GOPATH) | ||
export GO111MODULE=on | ||
PKGS=$(shell go list ./... | grep -v -E '/vendor/|/test|/examples') | ||
TESTPKGS?=./... | ||
|
@@ -168,12 +169,16 @@ GOMOCK = $(shell pwd)/bin/mockgen | |
gomock: | ||
$(call go-install-tool,$(GOMOCK),github.com/golang/mock/[email protected]) | ||
|
||
GINKGO = $(BIN_DIR)/ginkgo | ||
ginkgo: | ||
$(call go-install-tool,$(GINKGO),github.com/onsi/ginkgo/v2/ginkgo) | ||
|
||
# go-install-tool will 'go install' any package $2 and install it to $1. | ||
define go-install-tool | ||
@[ -f $(1) ] || { \ | ||
set -e ;\ | ||
echo "Downloading $(2)" ;\ | ||
GOBIN=$(BIN_DIR) go install -mod=mod $(2) ;\ | ||
GOBIN=$(BIN_DIR) go install $(2) ;\ | ||
} | ||
endef | ||
|
||
|
@@ -199,26 +204,26 @@ deploy-setup-k8s: export OPERATOR_EXEC=kubectl | |
deploy-setup-k8s: export CLUSTER_TYPE=kubernetes | ||
deploy-setup-k8s: deploy-setup | ||
|
||
test-e2e-conformance: | ||
test-e2e-conformance: ginkgo | ||
SUITE=./test/conformance ./hack/run-e2e-conformance.sh | ||
|
||
test-e2e-conformance-virtual-k8s-cluster-ci: | ||
test-e2e-conformance-virtual-k8s-cluster-ci: ginkgo | ||
./hack/run-e2e-conformance-virtual-cluster.sh | ||
|
||
test-e2e-conformance-virtual-k8s-cluster: | ||
test-e2e-conformance-virtual-k8s-cluster: ginkgo | ||
SKIP_DELETE=TRUE ./hack/run-e2e-conformance-virtual-cluster.sh | ||
|
||
test-e2e-conformance-virtual-ocp-cluster-ci: | ||
test-e2e-conformance-virtual-ocp-cluster-ci: ginkgo | ||
./hack/run-e2e-conformance-virtual-ocp.sh | ||
|
||
test-e2e-conformance-virtual-ocp-cluster: | ||
test-e2e-conformance-virtual-ocp-cluster: ginkgo | ||
SKIP_DELETE=TRUE ./hack/run-e2e-conformance-virtual-ocp.sh | ||
|
||
redeploy-operator-virtual-cluster: | ||
./hack/virtual-cluster-redeploy.sh | ||
|
||
test-e2e-validation-only: | ||
SUITE=./test/validation ./hack/run-e2e-conformance.sh | ||
test-e2e-validation-only: ginkgo | ||
SUITE=./test/validation ./hack/run-e2e-conformance.sh | ||
|
||
test-e2e: generate manifests skopeo envtest | ||
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir=/tmp -p path)"; source hack/env.sh; HOME="$(shell pwd)" go test ./test/e2e/... -timeout 60m -coverprofile cover.out -v | ||
|
@@ -255,11 +260,10 @@ undeploy-k8s: export OPERATOR_EXEC=kubectl | |
undeploy-k8s: undeploy | ||
|
||
deps-update: | ||
go mod tidy && \ | ||
go mod vendor | ||
go mod tidy | ||
|
||
check-deps: deps-update | ||
@set +e; git diff --quiet HEAD go.sum go.mod vendor; \ | ||
@set +e; git diff --quiet HEAD go.sum go.mod; \ | ||
if [ $$? -eq 1 ]; \ | ||
then echo -e "\ngo modules are out of date. Please commit after running 'make deps-update' command\n"; \ | ||
exit 1; fi | ||
|
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.