Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
84e01402
Commit
84e01402
authored
Feb 17, 2017
by
Ladicle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(local-cluster): fix missing variable option
`unbound variable` error occurs when docker-machine is not used.
parent
1a260961
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
local-cluster.sh
scripts/local-cluster.sh
+1
-1
No files found.
scripts/local-cluster.sh
View file @
84e01402
...
...
@@ -278,7 +278,7 @@ download_kubectl() {
# https://github.com/kubernetes/kubernetes/issues/23197
# code stolen from https://github.com/huggsboson/docker-compose-kubernetes/blob/SwitchToSharedMount/kube-up.sh
clean_volumes
()
{
if
[[
-n
"
${
DOCKER_MACHINE_NAME
}
"
]]
;
then
if
[[
-n
"
${
DOCKER_MACHINE_NAME
:-
}
"
]]
;
then
docker-machine ssh
"
${
DOCKER_MACHINE_NAME
}
"
"mount | grep -o 'on /var/lib/kubelet.* type' | cut -c 4- | rev | cut -c 6- | rev | sort -r | xargs --no-run-if-empty sudo umount"
docker-machine ssh
"
${
DOCKER_MACHINE_NAME
}
"
"sudo rm -Rf /var/lib/kubelet"
docker-machine ssh
"
${
DOCKER_MACHINE_NAME
}
"
"sudo mkdir -p /var/lib/kubelet"
...
...
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