Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
4d88a4ed
Commit
4d88a4ed
authored
Jan 17, 2016
by
Justin Santa Barbara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kube-up: move sha1sum-file into common
Also hash the tar files in AWS kube-up
parent
a7041209
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
util.sh
cluster/aws/util.sh
+5
-0
common.sh
cluster/common.sh
+8
-0
util.sh
cluster/gce/util.sh
+0
-8
No files found.
cluster/aws/util.sh
View file @
4d88a4ed
...
...
@@ -566,10 +566,15 @@ function ensure-temp-dir {
# SALT_TAR_URL
function
upload-server-tars
()
{
SERVER_BINARY_TAR_URL
=
SERVER_BINARY_TAR_HASH
=
SALT_TAR_URL
=
SALT_TAR_HASH
=
ensure-temp-dir
SERVER_BINARY_TAR_HASH
=
$(
sha1sum-file
"
${
SERVER_BINARY_TAR
}
"
)
SALT_TAR_HASH
=
$(
sha1sum-file
"
${
SALT_TAR
}
"
)
if
[[
-z
${
AWS_S3_BUCKET
-
}
]]
;
then
local
project_hash
=
local
key
=
$(
aws configure get aws_access_key_id
)
...
...
cluster/common.sh
View file @
4d88a4ed
...
...
@@ -441,3 +441,11 @@ function build-runtime-config() {
fi
fi
}
function
sha1sum-file
()
{
if
which shasum
>
/dev/null 2>&1
;
then
shasum
-a1
"
$1
"
|
awk
'{ print $1 }'
else
sha1sum
"
$1
"
|
awk
'{ print $1 }'
fi
}
cluster/gce/util.sh
View file @
4d88a4ed
...
...
@@ -115,14 +115,6 @@ function detect-project () {
fi
}
function
sha1sum-file
()
{
if
which shasum
>
/dev/null 2>&1
;
then
shasum
-a1
"
$1
"
|
awk
'{ print $1 }'
else
sha1sum
"
$1
"
|
awk
'{ print $1 }'
fi
}
function
already-staged
()
{
local
-r
file
=
$1
local
-r
newsum
=
$2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment