-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make kubeadm job friendlier for local execution. #2183
Conversation
This lets users gracefully invoke the job's Docker image with mounted volumes for the necessary repositories (instead of cloning them). Previously, they would have to comment out these "git clone" lines and rebuild the image or encounter an error because the directories already existed.
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 \ |
There was a problem hiding this comment.
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.
Instead of just closing the PR without merging, can we discuss the best way forward for this? Cloning the test-infra in order to call bootstrap.py is what almost all of our other images do: https://github.com/kubernetes/test-infra/blob/master/images/e2e-prow/runner Are you suggesting that I bake the test-infra repo into the image instead? Is this PR not an incremental improvement over what's there? |
I now understand better why this image exists, but I still do not like its new dynamic behavior. Wouldn't it be easier and more efficient to just run the bootstrap command directly? |
You're right that I could run |
Ideally I would like to identify why your local run of bootstrap did not accurate represent what the container would do and we fix that. However this is good for now. /lgtm |
This lets users gracefully invoke the job's Docker image with mounted volumes for the necessary repositories (instead of cloning them).
Previously, they would have to comment out these
git clone
lines and rebuild the image or encounter an error because the directories already existed.