Skip to content

Commit 768d6dc

Browse files
committed
node-installer: moved kind-config.yaml to inline in the script
Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
1 parent 336a8ef commit 768d6dc

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

node-installer/.kind/kind-config.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

node-installer/integration-test-kind.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ if kind get clusters | grep -q "spin-test"; then
1010
fi
1111

1212
echo "Creating kind cluster..."
13-
kind create cluster --config .kind/kind-config.yaml
13+
kind create cluster --config - << EOF
14+
kind: Cluster
15+
apiVersion: kind.x-k8s.io/v1alpha4
16+
name: spin-test
17+
nodes:
18+
- role: control-plane
19+
extraPortMappings:
20+
- containerPort: 80
21+
hostPort: 8080
22+
protocol: TCP
23+
EOF
1424
kubectl --context=kind-spin-test wait --for=condition=Ready nodes --all --timeout=90s
1525

1626
echo "=== Step 2: Create namespace and deploy RuntimeClass ==="

0 commit comments

Comments
 (0)