You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Contributing to MarkLogic-kubernetes-operator
1
+
# Contributing to marklogic-operator-kubernetes
2
2
3
3
Thank you for your interest in contributing to this project! We welcome contributions from the community to make this project better.
4
4
@@ -38,4 +38,4 @@ The MarkLogic kubernetes operator team will use the PRs for "inspiration" but no
38
38
39
39
**Important:** Please open an issue in the [Issue Tracker][] and get your proposed changes pre-approved by at least one of the project maintainers before you start coding. Nothing is more frustrating than seeing your hard work go to waste because your vision does not align with that of the project maintainers.
@@ -115,10 +128,44 @@ vet: ## Run go vet against code.
115
128
test: manifests generate fmt vet envtest ## Run tests.
116
129
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test -v $$(go list ./... | grep -v /e2e) -coverprofile cover.out
117
130
118
-
# Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.
119
-
.PHONY: e2e-test # Run the e2e tests against a Kind k8s instance that is spun up.
120
-
e2e-test:
121
-
go test -v ./test/e2e
131
+
# Utilize minikube or modify the e2e tests to load the image locally, enabling compatibility with other vendors.
132
+
# To run specific e2e test with label, try go test -v ./test/e2e -count=1 -args --labels="type=tls-multi-node"
133
+
.PHONY: e2e-test # Run the e2e tests against a minikube k8s instance that is spun up.
134
+
e2e-test:
135
+
@echo "=====Check Huges pages test is enabled or not for e2e test"
136
+
ifeq ($(VERIFY_HUGE_PAGES), true)
137
+
@echo "=====Setting hugepages value to 1280 for hugepages-e2e test"
138
+
sudo sysctl -w vm.nr_hugepages=1280
139
+
140
+
@echo "=====Restart minikube cluster to apply hugepages value"
141
+
minikube stop
142
+
minikube start
143
+
144
+
@echo "=====Running e2e test including hugepages test"
145
+
go test -v -count=1 -timeout 30m ./test/e2e -verifyHugePages
146
+
147
+
@echo "=====Resetting hugepages value to 0"
148
+
sudo sysctl -w vm.nr_hugepages=0
149
+
150
+
@echo "=====Restart minikube cluster"
151
+
minikube stop
152
+
minikube start
153
+
else
154
+
@echo "=====Running e2e test without hugepages test"
0 commit comments