From 9f726b32537aade9273e8379d750e6ab22c07845 Mon Sep 17 00:00:00 2001 From: Daniel Grau Date: Tue, 14 Mar 2023 23:07:09 +0000 Subject: [PATCH] test --- cloudbuild/presubmit.sh | 11 +++++++++-- cloudbuild/presubmit.yaml | 3 +-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/cloudbuild/presubmit.sh b/cloudbuild/presubmit.sh index 77f843e4..f7b3282d 100755 --- a/cloudbuild/presubmit.sh +++ b/cloudbuild/presubmit.sh @@ -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 diff --git a/cloudbuild/presubmit.yaml b/cloudbuild/presubmit.yaml index 10e64119..cca05170 100644 --- a/cloudbuild/presubmit.yaml +++ b/cloudbuild/presubmit.yaml @@ -21,5 +21,4 @@ steps: timeout: 1800s options: - pool: - name: 'projects/openconfig-lemming/locations/us-central1/workerPools/lemming-workerpool' \ No newline at end of file + machineType: 'e2-standard-8' \ No newline at end of file