@@ -142,7 +142,7 @@ azure-ipam: azure-ipam-binary azure-ipam-archive
142142
143143revision : # # print the current git revision
144144 @echo $(REVISION )
145-
145+
146146version : # # prints the root version
147147 @echo $(ACN_VERSION )
148148
@@ -161,15 +161,15 @@ cni-dropgz-test-version: ## prints the cni-dropgz version
161161 @echo $(CNI_DROPGZ_TEST_VERSION )
162162
163163cns-version :
164- @echo $(CNS_VERSION )
164+ @echo $(CNS_VERSION )
165165
166166npm-version :
167- @echo $(NPM_VERSION )
167+ @echo $(NPM_VERSION )
168168
169169zapai-version : # # prints the zapai version
170170 @echo $(ZAPAI_VERSION )
171171
172- # #@ Binaries
172+ # #@ Binaries
173173
174174# Build the delegated IPAM plugin binary.
175175azure-ipam-binary :
@@ -509,8 +509,8 @@ manifest-build: # util target to compose multiarch container manifests from plat
509509 $(MAKE ) manifest-add PLATFORM=$(PLATFORM ) ; \
510510 )\
511511 )\
512-
513-
512+
513+
514514
515515manifest-push : # util target to push multiarch container manifest.
516516 $(CONTAINER_BUILDER ) manifest push --all $(IMAGE_REGISTRY ) /$(IMAGE ) :$(TAG ) docker://$(IMAGE_REGISTRY ) /$(IMAGE ) :$(TAG )
@@ -534,7 +534,7 @@ acncli-manifest-push: ## push acncli multiplat container manifest
534534acncli-skopeo-archive : # # export tar archive of acncli multiplat container manifest.
535535 $(MAKE ) manifest-skopeo-archive \
536536 IMAGE=$(ACNCLI_IMAGE ) \
537- TAG=$(ACN_VERSION )
537+ TAG=$(ACN_VERSION )
538538
539539cni-dropgz-manifest-build : # # build cni-dropgz multiplat container manifest.
540540 $(MAKE ) manifest-build \
@@ -692,7 +692,7 @@ ifeq ($(GOOS),linux)
692692endif
693693
694694
695- # #@ Utils
695+ # #@ Utils
696696
697697clean : # # Clean build artifacts.
698698 $(RMDIR ) $(OUTPUT_DIR )
@@ -723,7 +723,7 @@ workspace: ## Set up the Go workspace.
723723 go work use ./dropgz
724724 go work use ./zapai
725725
726- # #@ Test
726+ # #@ Test
727727
728728COVER_PKG ?= .
729729# Restart case is used for cni load test pipeline for restarting the nodes cluster.
@@ -762,6 +762,15 @@ test-azure-ipam: ## run the unit test for azure-ipam
762762kind :
763763 kind create cluster --config ./test/kind/kind.yaml
764764
765+ test-k8se2e : test-k8se2e-build test-k8se2e-only # # Alias to run build and test
766+
767+ test-k8se2e-build : # # Build k8s e2e test suite
768+ cd hack/scripts && bash ./k8se2e.sh $(GROUP ) $(CLUSTER )
769+ cd ../..
770+
771+ test-k8se2e-only : # # Run k8s network conformance test, use TYPE=basic for only datapath tests
772+ cd hack/scripts && bash ./k8se2e-tests.sh $(OS ) $(TYPE )
773+ cd ../..
765774
766775# #@ Utilities
767776
@@ -781,7 +790,7 @@ gitconfig: ## configure the local git repository
781790setup : tools install-hooks gitconfig # # performs common required repo setup
782791
783792
784- # #@ Tools
793+ # #@ Tools
785794
786795$(TOOLS_DIR ) /go.mod :
787796 cd $(TOOLS_DIR ) ; go mod init && go mod tidy
@@ -791,7 +800,7 @@ $(CONTROLLER_GEN): $(TOOLS_DIR)/go.mod
791800
792801controller-gen : $(CONTROLLER_GEN ) # # Build controller-gen
793802
794- protoc :
803+ protoc :
795804 source ${REPO_ROOT} /scripts/install-protoc.sh
796805
797806$(GOCOV ) : $(TOOLS_DIR ) /go.mod
@@ -824,13 +833,13 @@ $(MOCKGEN): $(TOOLS_DIR)/go.mod
824833
825834mockgen : $(MOCKGEN ) # # Build mockgen
826835
827- clean-tools :
836+ clean-tools :
828837 rm -r build/tools/bin
829838
830839tools : acncli gocov gocov-xml go-junit-report golangci-lint gofumpt protoc # # Build bins for build tools
831840
832841
833- # #@ Help
842+ # #@ Help
834843
835844help : # # Display this help
836- @awk ' BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a -zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST )
845+ @awk ' BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[0-9a -zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST )
0 commit comments