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:
parent
005341bf1c
commit
c27b9dbc31
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue