Skip to content

Commit

Permalink
wip experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Mar 14, 2023
1 parent 72a0488 commit ded7dd5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
20 changes: 9 additions & 11 deletions cloudbuild/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@
# limitations under the License.


set -xe
set -xeE

export PATH=${PATH}:/usr/local/go/bin
gopath=$(go env GOPATH)
export PATH=${PATH}:$gopath/bin
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && \
sudo install skaffold /usr/local/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
kne deploy /kne-internal/deploy/kne/kind-bridge.yaml || true
mkdir -p ~/.kube
kind get kubeconfig --internal --name kne > ~/.kube/config
docker network connect kind "$(cat /etc/hostname)"

skaffold run -m lemming-operator
make load
make itest
kne deploy /kne-internal/deploy/kne/kind-bridge.yaml
make itest
14 changes: 4 additions & 10 deletions cloudbuild/presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@
# limitations under the License.

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 e2-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 ded7dd5

Please sign in to comment.