Skip to content

Commit

Permalink
Add kind-config.yaml for e2e tests
Browse files Browse the repository at this point in the history
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 <liad6500@gmail.com>
  • Loading branch information
liadlauber committed Dec 25, 2023
1 parent a3b9601 commit abc1cb2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions hack/kind-config.yaml
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion test/e2e_tests/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

const (
TimeoutNfsPvc = 30 * time.Second
TimeoutNfsPvc = 60 * time.Second
NfsPvcCreationInterval = 5 * time.Second
)

Expand Down

0 comments on commit abc1cb2

Please sign in to comment.