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
8b337b0b
Commit
8b337b0b
authored
Jun 10, 2015
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unbound variable bug
parent
93038de0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
common.sh
cluster/common.sh
+4
-4
No files found.
cluster/common.sh
100644 → 100755
View file @
8b337b0b
...
...
@@ -169,7 +169,7 @@ function get-kubeconfig-bearertoken() {
fi
}
# Sets
binary_version
variable to the version passed in as an argument, or if argument is
# Sets
KUBE_VERSION
variable to the version passed in as an argument, or if argument is
# latest_stable, latest_release, or latest_ci fetches and sets the correponding version number
#
# Args:
...
...
@@ -179,13 +179,13 @@ function get-kubeconfig-bearertoken() {
function
set_binary_version
()
{
if
[[
"
${
1
}
"
==
"latest_stable"
]]
;
then
KUBE_VERSION
=
$(
gsutil
cat
gs://kubernetes-release/release/stable.txt
)
echo
"Using latest stable version:
${
binary_version
}
"
echo
"Using latest stable version:
${
KUBE_VERSION
}
"
elif
[[
"
${
1
}
"
==
"latest_release"
]]
;
then
KUBE_VERSION
=
$(
gsutil
cat
gs://kubernetes-release/release/latest.txt
)
echo
"Using latest release version:
${
binary_version
}
"
echo
"Using latest release version:
${
KUBE_VERSION
}
"
elif
[[
"
${
1
}
"
==
"latest_ci"
]]
;
then
KUBE_VERSION
=
$(
gsutil
cat
gs://kubernetes-release/ci/latest.txt
)
echo
"Using latest ci version:
${
binary_version
}
"
echo
"Using latest ci version:
${
KUBE_VERSION
}
"
else
KUBE_VERSION
=
${
1
}
fi
...
...
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