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

Add a script suitable for wget https://get.k8s.io | sh installation #3106

Merged
merged 3 commits into from
Jan 7, 2015

Conversation

brendandburns
Copy link
Contributor

No description provided.

set -o nounset
set -o pipefail

release=v0.7.0
Copy link
Member

Choose a reason for hiding this comment

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

We have to change this every release? That seems unfortunate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, there is no "latest.tar.gz" at least not yet.

@brendandburns
Copy link
Contributor Author

comments addressed.

ptal
thanks!

rm ${file}

echo "Installing kubernetes..."
cd kubernetes
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: It might be better to do this in a subshell so that you don't have to cd .. later in the script.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@roberthbailey roberthbailey added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 23, 2014
@erictune
Copy link
Member

I like the simplicity. But, why GCE + 0.7.1 as the default, and not GKE as the default?

@brendandburns
Copy link
Contributor Author

Switched to v0.7.1. I realized the GKE provider isn't there for the v0.7.1 release (it will be part of v0.8.0) I'll update the script when that is released.

ptal.
Thanks
--brendan

@erictune
Copy link
Member

Sgtm
On Dec 23, 2014 10:40 AM, "Brendan Burns" notifications@github.com wrote:

Switched to v0.7.1. I realized the GKE provider isn't there for the v0.7.1
release (it will be part of v0.8.0) I'll update the script when that is
released.

ptal.
Thanks
--brendan


Reply to this email directly or view it on GitHub
#3106 (comment)
.

@lavalamp
Copy link
Member

Should this be merged, or are we waiting for v0.8 to land?

@brendandburns
Copy link
Contributor Author

Fine with me to merge. It works with 0.7.x, will update to 0.7.2 when it
arrives...

Brendan
On Dec 30, 2014 5:46 PM, "Daniel Smith" notifications@github.com wrote:

Should this be merged, or are we waiting for v0.8 to land?


Reply to this email directly or view it on GitHub
#3106 (comment)
.

@lavalamp
Copy link
Member

lavalamp commented Jan 2, 2015

My only concern with this is that we'll have to modify it manually when we push releases.

The link https://github.com/GoogleCloudPlatform/kubernetes/releases/latest works and redirects to 0.7.2; do you think it's worth it to leverage that?

@brendandburns
Copy link
Contributor Author

https://github.com/GoogleCloudPlatform/kubernetes/releases/latest/kubernetes.tar.gz doesn't work though, so we'd need some shell hackery to support that, I'd rather do that in a different PR.

Updated to 0.7.2

@zmerlynn
Copy link
Member

zmerlynn commented Jan 6, 2015

In #3238 I proposed a way for a new CI bucket to have a latest "link" that's just a text file. It would be trivial just to plumb this through the official push process as well.

elif [[ "${uname}" == "Linux" ]]; then
platform="linux"
else
echo "Unknown, unsupported platform: (${uname}). Bailing out."
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps some more info about what platforms are supported?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

echo "Installing kubernetes..."
(
cd kubernetes
./cluster/kube-up.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

If this fails (say they don't have gcutil installed) we should give them the command to run to try again. They shouldn't have to re-download everything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@erictune
Copy link
Member

erictune commented Jan 6, 2015

@lavalamp @brendandburns what is the status of this PR.

@brendandburns
Copy link
Contributor Author

I addressed Joe's comments. Would like to merge if everyone is happy.

Thanks!
--brendan

)
}

if [[ "x${KUBERNETES_SKIP_DOWNLOAD}" != "x" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

Document in comment block up top.

Copy link
Contributor

Choose a reason for hiding this comment

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

nounset will trip you up here. Also, you don't need the "x" trick.

if [[ -n "${KUBERNETES_SKIP_DOWNLOAD-}" ]]; then
...
fi

@jbeda
Copy link
Contributor

jbeda commented Jan 6, 2015

I'm cool with you merging after you address comments. We'll have to deal with the hard coded version sooner rather than later.

@brendandburns
Copy link
Contributor Author

addressed comments and re-tested. will merge on green.

@lavalamp
Copy link
Member

lavalamp commented Jan 6, 2015

LGTM

brendandburns added a commit that referenced this pull request Jan 7, 2015
Add a script suitable for wget https://get.k8s.io | sh installation
@brendandburns brendandburns merged commit 3d82892 into kubernetes:master Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants