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

Also push .sha1 for devel builds #7651

Merged
merged 1 commit into from
May 6, 2015

Conversation

zmerlynn
Copy link
Member

@zmerlynn zmerlynn commented May 1, 2015

And adds a .sha1 cache file to indicate what file was already pushed
to GCS, and how to force it if not, removing a few seconds off a
kube-up/push if you're just cycling.

With this and #7602, all TAR_URLS will have a .sha1 as well.

@j3ffml
Copy link
Contributor

j3ffml commented May 2, 2015

cc @filbranden

local -r file=$1
local -r newsum=$2

if [ ! -e "${file}.sha1" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Please always use [[ ... ]] in bash, it's a built-in and allows for more flexible syntax.

In this case, you can use || instead of the if !.

  [[ -e "${file}.sha1" ]] || return 1

@filbranden
Copy link
Contributor

The usual nitpicks, otherwise looks good and makes sense.

@filbranden
Copy link
Contributor

Let me know when it's ready to take another look...

@zmerlynn
Copy link
Member Author

zmerlynn commented May 4, 2015

Sorry, got sidetracked by other stuff today, will fix it up soon. :)

And adds a .sha1 cache file to indicate what file was already pushed
to GCS, and how to force it if not, removing a few seconds off a
kube-up/push if you're just cycling.

With this and kubernetes#7602, all TAR_URLS will have a .sha1 as well.
@zmerlynn
Copy link
Member Author

zmerlynn commented May 5, 2015

PTAL. I think this addressed everything.

filbranden added a commit that referenced this pull request May 6, 2015
@filbranden filbranden merged commit b7f9e2c into kubernetes:master May 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants