From abc1cb2ed42262fa0b63edcbd73b53b45b52dfb7 Mon Sep 17 00:00:00 2001 From: liadlauber Date: Mon, 25 Dec 2023 12:42:45 +0200 Subject: [PATCH] Add kind-config.yaml for e2e tests Added a kind configuration file for setting up a four-node Kubernetes cluster suitable for e2e testing in GitHub workflows. Also increased the timeout value for NFS PVC from 30 to 60 seconds. Signed-off-by: liadlauber --- hack/kind-config.yaml | 13 +++++++++++++ test/e2e_tests/e2e_test.go | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 hack/kind-config.yaml diff --git a/hack/kind-config.yaml b/hack/kind-config.yaml new file mode 100644 index 0000000..658ea43 --- /dev/null +++ b/hack/kind-config.yaml @@ -0,0 +1,13 @@ +# four node (one control plane + three workers) cluster config for k8s e2e test in github workflow! +# for the local registry config see https://kind.sigs.k8s.io/docs/user/local-registry/ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: + - role: control-plane + - role: worker + - role: worker + - role: worker +containerdConfigPatches: + - |- + [plugins."io.containerd.grpc.v1.cri".registry.mirrors."kind-registry:5000"] + endpoint = ["http://kind-registry:5000"] \ No newline at end of file diff --git a/test/e2e_tests/e2e_test.go b/test/e2e_tests/e2e_test.go index cf9f911..03cd186 100644 --- a/test/e2e_tests/e2e_test.go +++ b/test/e2e_tests/e2e_test.go @@ -16,7 +16,7 @@ import ( ) const ( - TimeoutNfsPvc = 30 * time.Second + TimeoutNfsPvc = 60 * time.Second NfsPvcCreationInterval = 5 * time.Second )