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
4a6ac500
Unverified
Commit
4a6ac500
authored
Jan 17, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 17, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72807 from dixudx/hack_host_arch
add method to get host os/arch in hack scripts
parents
4d72931d
88740dfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
util.sh
hack/lib/util.sh
+13
-6
No files found.
hack/lib/util.sh
View file @
4a6ac500
...
...
@@ -98,12 +98,8 @@ kube::util::ensure-temp-dir() {
fi
}
# This figures out the host platform without relying on golang. We need this as
# we don't want a golang install to be a prerequisite to building yet we need
# this info to figure out where the final binaries are placed.
kube::util::host_platform
()
{
kube::util::host_os
()
{
local
host_os
local
host_arch
case
"
$(
uname
-s
)
"
in
Darwin
)
host_os
=
darwin
...
...
@@ -116,7 +112,11 @@ kube::util::host_platform() {
exit
1
;;
esac
echo
"
${
host_os
}
"
}
kube::util::host_arch
()
{
local
host_arch
case
"
$(
uname
-m
)
"
in
x86_64
*
)
host_arch
=
amd64
...
...
@@ -150,7 +150,14 @@ kube::util::host_platform() {
exit
1
;;
esac
echo
"
${
host_os
}
/
${
host_arch
}
"
echo
"
${
host_arch
}
"
}
# This figures out the host platform without relying on golang. We need this as
# we don't want a golang install to be a prerequisite to building yet we need
# this info to figure out where the final binaries are placed.
kube::util::host_platform
()
{
echo
"
$(
kube::util::host_os
)
/
$(
kube::util::host_arch
)
"
}
kube::util::find-binary-for-platform
()
{
...
...
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