Skip to content

Commit

Permalink
WIP: e2e scenario test: Build with workspace
Browse files Browse the repository at this point in the history
For discussion.
  • Loading branch information
justinsb committed Feb 24, 2023
1 parent 0e6d24b commit 6beafc8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/scenarios/kops-simple
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
25 changes: 25 additions & 0 deletions e2e/setup-workspace.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6beafc8

Please sign in to comment.