diff --git a/e2e/scenarios/kops-simple b/e2e/scenarios/kops-simple index 2cdfc8f9c7..564283ee35 100755 --- a/e2e/scenarios/kops-simple +++ b/e2e/scenarios/kops-simple @@ -78,6 +78,9 @@ cd ${REPO_ROOT} export KO_DOCKER_REPO="${IMAGE_REPO}" ko build --tags ${IMAGE_TAG} --base-import-paths --push=true ./cmd/cloud-controller-manager/ +# HACK just so we can see the image quickly +exit 1 + # TODO: Only if running in a test project? gsutil iam ch allAuthenticatedUsers:objectViewer gs://artifacts.${GCP_PROJECT}.appspot.com diff --git a/e2e/setup-workspace.sh b/e2e/setup-workspace.sh new file mode 100755 index 0000000000..4ca2fb5ae3 --- /dev/null +++ b/e2e/setup-workspace.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e +set -x + +REPO_ROOT=$(git rev-parse --show-toplevel) +cd ${REPO_ROOT} +cd .. +WORKSPACE=$(pwd) + +cd "${REPO_ROOT}" +go work init + +go work use . +go work use crd +go work use providers + +sed -i 's/^\s*k8s.io.*//g' go.mod + +go work use ${WORKSPACE}/kubernetes +for d in ${WORKSPACE}/kubernetes/staging/src/k8s.io/*; do + go work use $d +done + +go work sync \ No newline at end of file