File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,13 +143,18 @@ golangci-lint:
143143 test -s $(LOCALBIN ) /golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $(GOLANGCI_LINT_VERSION )
144144 $(LOCALBIN ) /golangci-lint run --fix
145145
146- PROCS? =$(shell expr $(shell nproc --ignore 2) / 2)
146+ # PROCS?=$(shell expr $(shell nproc --ignore 2) / 2)
147+ PROCS = 1
147148PROC_CMD = --procs ${PROCS}
149+ override GOMAXPROCS = 2
150+ override GOMEMLIMIT = 2000MiB
148151
149152.PHONY : test
150153test : manifests generate fmt vet envtest ginkgo # # Run tests.
151154 KUBEBUILDER_ASSETS=" $( shell $( ENVTEST) -v debug --bin-dir $( LOCALBIN) use $( ENVTEST_K8S_VERSION) -p path) " \
152155 OPERATOR_TEMPLATES=" $( PWD) /templates" \
156+ GOMAXPROCS=$(GOMAXPROCS ) \
157+ GOMEMLIMIT=$(GOMEMLIMIT ) \
153158 $(GINKGO ) --trace --cover --coverpkg=../../internal/...,../../api/v1beta1 --coverprofile cover.out --covermode=atomic --randomize-all ${PROC_CMD} $(GINKGO_ARGS ) ./test/...
154159
155160# #@ Build
Original file line number Diff line number Diff line change @@ -140,6 +140,13 @@ var _ = BeforeSuite(func() {
140140 // failing on the colons in ::1
141141 LocalServingHost : "127.0.0.1" ,
142142 },
143+ ControlPlane : envtest.ControlPlane {
144+ APIServer : & envtest.APIServer {
145+ Args : []string {
146+ "--service-cluster-ip-range=10.0.0.0/12" , // 65k+ IPs
147+ },
148+ },
149+ },
143150 }
144151
145152 // cfg is defined in this file globally.
You can’t perform that action at this time.
0 commit comments