Skip to content

Commit

Permalink
wip experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Oct 31, 2022
1 parent 2ac420a commit e0b7d2e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
15 changes: 9 additions & 6 deletions cloudbuild/presubmit.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash

set -xe
set -eE

export PATH=${PATH}:/usr/local/go/bin
gopath=$(go env GOPATH)
export PATH=${PATH}:$gopath/bin
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

cd /tmp/workspace
kne deploy ~/kne-internal/deploy/kne/kind-bridge.yaml
kind create cluster --name kne
mkdir -p ~/.kube
kind get kubeconfig --internal --name kne > ~/.kube/config
docker network connect kind "$(cat /etc/hostname)"

kne deploy /kne-internal/deploy/kne/kind-bridge.yaml --kubecfg ~/kubeconfig
make deploy itest
make clean
make deploy2 itest2
14 changes: 4 additions & 10 deletions cloudbuild/presubmit.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
steps:
- id: remote_builder_test
name: gcr.io/$PROJECT_ID/remote-builder
env:
- USERNAME=user
- SSH_ARGS=--internal-ip --ssh-key-expire-after=1d
- INSTANCE_NAME=kne-presubmit-$BUILD_ID
- INSTANCE_ARGS=--network cloudbuild-workers --image-project gep-kne --image-family kne --machine-type n2-standard-16 --preemptible
- ZONE=us-central1-a
- REMOTE_WORKSPACE=/tmp/workspace
- COMMAND=source /tmp/workspace/cloudbuild/presubmit.sh 2>&1
- id: local_test
name: gcr.io/$PROJECT_ID/kne-kind
entrypoint: 'bash'
args: ['cloudbuild/presubmit.sh']

timeout: 1800s

Expand Down

0 comments on commit e0b7d2e

Please sign in to comment.