Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Mar 14, 2023
1 parent 637dc67 commit 9f726b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 9 additions & 2 deletions cloudbuild/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@
set -xeE

printf "\n apiServerPort: 6443" >> /kne-internal/kind/kind-no-cni.yaml
sed -i "s/name: kne/name: kne\n recycle: true/g" /kne-internal/deploy/kne/kind-bridge.yaml

kne deploy /kne-internal/deploy/kne/kind-bridge.yaml || true
NAME="$(yq '.cluster.spec.name' < /kne-internal/deploy/kne/kind-bridge.yaml)"
IMAGE="$(yq '.cluster.spec.image' < /kne-internal/deploy/kne/kind-bridge.yaml)"
CONFIG="$(yq '.cluster.spec.config' < /kne-internal/deploy/kne/kind-bridge.yaml)"

pushd /kne-internal/deploy/kne
kind create cluster --name $NAME --config $CONFIG --image $IMAGE
mkdir -p ~/.kube
kind get kubeconfig --internal --name kne > ~/.kube/config
kind get kubeconfig --internal --name $NAME > ~/.kube/config
docker network connect kind "$(cat /etc/hostname)"

popd
kne deploy /kne-internal/deploy/kne/kind-bridge.yaml
make itest
3 changes: 1 addition & 2 deletions cloudbuild/presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ steps:
timeout: 1800s

options:
pool:
name: 'projects/openconfig-lemming/locations/us-central1/workerPools/lemming-workerpool'
machineType: 'e2-standard-8'

0 comments on commit 9f726b3

Please sign in to comment.