File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed
Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : batch/v1
2+ kind : Job
3+ metadata :
4+ name : kernel-limits
5+ namespace : default
6+ spec :
7+ template :
8+ metadata :
9+ labels :
10+ autoscaling.cast.ai/removal-disabled : " true"
11+ spec :
12+ containers :
13+ - name : init
14+ image : alpine:3.14
15+ command :
16+ - /bin/sh
17+ - -xc
18+ - |
19+ sysctl fs.inotify.max_user_watches=1048576
20+ sysctl fs.inotify.max_user_instances=1024
21+ securityContext :
22+ privileged : true
23+ restartPolicy : Never
24+ backoffLimit : 1
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ echo "Creating kind cluster $KIND_CLUSTER_NAME…"
6363kind create cluster --name " $KIND_CLUSTER_NAME "
6464chmod 600 " $KUBECONFIG "
6565
66+ # apply kernel limits job first and wait for completion
67+ echo " Applying kernel limits job…"
68+ kubectl apply --filename hack/ci/kernel.yaml
69+ kubectl wait --for=condition=Complete job/kernel-limits --timeout=300s
70+ echo " Kernel limits job completed."
71+
6672# store logs as artifacts
6773make protokol
6874_tools/protokol --output " $ARTIFACTS /logs" --namespace ' kcp-*' --namespace ' e2e-*' > /dev/null 2>&1 &
@@ -109,6 +115,9 @@ WHAT="${WHAT:-./test/e2e/...}"
109115TEST_ARGS=" ${TEST_ARGS:- -timeout 2h -v} "
110116E2E_PARALLELISM=${E2E_PARALLELISM:- 2}
111117
118+ # Increase file descriptor limit for CI environments
119+ ulimit -n 65536
120+
112121(set -x; go test -tags e2e -parallel $E2E_PARALLELISM $TEST_ARGS " $WHAT " )
113122
114123echo " Done. :-)"
Original file line number Diff line number Diff line change 5858
5959echo " Kubeconfig is in $KUBECONFIG ."
6060
61+ # apply kernel limits job first and wait for completion
62+ echo " Applying kernel limits job…"
63+ kubectl apply --filename hack/ci/kernel.yaml
64+ kubectl wait --for=condition=Complete job/kernel-limits --timeout=300s
65+ echo " Kernel limits job completed."
66+
6167# deploying operator CRDs
6268echo " Deploying operator CRDs…"
6369kubectl apply --kustomize config/crd
You can’t perform that action at this time.
0 commit comments