1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

scripts/test-infra: setup kind in e2e-test

This commit is contained in:
Markus Lehtonen 2024-07-09 09:13:49 +03:00
parent 005341bf1c
commit c27b9dbc31

View file

@ -8,6 +8,20 @@ export KUBECONFIG=`pwd`/kubeconfig
export IMAGE_REGISTRY="gcr.io/k8s-staging-nfd"
export E2E_TEST_FULL_IMAGE=true
# Install kind
go install sigs.k8s.io/kind@$KIND_VERSION
# create a cluster with the local registry enabled in containerd
cat <<EOF | kind create cluster --kubeconfig $KUBECONFIG --image $KIND_NODE_IMAGE --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: $CLUSTER_NAME
nodes:
- role: control-plane
- role: worker
- role: worker
EOF
# Wait for the image to be built and published
i=1
while true; do