Skip to content

Commit

Permalink
tests/k8s.sh: Various fixes
Browse files Browse the repository at this point in the history
This commit fixes some issues causing tests/k8s.sh to fail.

Signed-off-by: Or Ozeri <[email protected]>
  • Loading branch information
orozery committed Oct 30, 2023
1 parent fa359db commit 3089e15
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,17 @@ function test_k8s {
kind create cluster --name peer1

# load images to cluster
kind load docker-image cl-controlplane cl-dataplane cl-go-dataplane gwctl --name peer1
kind load docker-image cl-controlplane --name peer1
kind load docker-image cl-dataplane --name peer1
kind load docker-image cl-go-dataplane --name peer1
kind load docker-image gwctl --name peer1

# configure kubectl
kubectl config use-context kind-peer1

# wait for service account to be created
timeout 30 sh -c 'until kubectl -n default get serviceaccount default -o name; do sleep 0.1; done > /dev/null 2>&1'

# create clusterlink objects
kubectl create -f ./peer1/k8s.yaml

Expand Down

0 comments on commit 3089e15

Please sign in to comment.