Skip to content

Commit ce237c3

Browse files
committed
DNM
1 parent 2e0a55b commit ce237c3

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
147148
PROC_CMD = --procs ${PROCS}
149+
override GOMAXPROCS = 2
150+
override GOMEMLIMIT = 2000MiB
148151

149152
.PHONY: test
150153
test: 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

test/functional/suite_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)