Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make kubeadm job friendlier for local execution. #2183

Merged
merged 1 commit into from
Mar 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions images/ci-kubernetes-e2e-kubeadm/runner
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@ set -o errexit
set -o nounset
set -o pipefail

git clone https://github.com/kubernetes/test-infra
git clone https://github.com/kubernetes/kubernetes-anywhere
if [ ! -e test-infra ]; then
git clone https://github.com/kubernetes/test-infra
fi

if [ ! -e kubernetes-anywhere ]; then
git clone https://github.com/kubernetes/kubernetes-anywhere
fi

# This is required until https://github.com/kubernetes/kubernetes-anywhere/issues/332
# is implemented.
ln -s "${GOOGLE_APPLICATION_CREDENTIALS}" kubernetes-anywhere/phase1/gce/account.json
if [ ! -e kubernetes-anywhere/phase1/gce/account.json ]; then
ln -s "${GOOGLE_APPLICATION_CREDENTIALS}" kubernetes-anywhere/phase1/gce/account.json
fi

./test-infra/jenkins/bootstrap.py \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact that this image clones test infra seems to be the core problem.

--repo="k8s.io/${REPO_NAME}" \
Expand Down