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
a48d9573
Commit
a48d9573
authored
Mar 31, 2016
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(e2e): clean up duplicate code
parent
0b1549f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
kubectl.sh
scripts/kubectl.sh
+1
-15
No files found.
scripts/kubectl.sh
View file @
a48d9573
...
@@ -18,26 +18,12 @@ set -eo pipefail
...
@@ -18,26 +18,12 @@ set -eo pipefail
HELM_ROOT
=
"
${
BASH_SOURCE
[0]%/*
}
/.."
HELM_ROOT
=
"
${
BASH_SOURCE
[0]%/*
}
/.."
source
"
${
HELM_ROOT
}
/scripts/common.sh"
source
"
${
HELM_ROOT
}
/scripts/common.sh"
source
"
${
HELM_ROOT
}
/scripts/docker.sh"
if
[
-f
"
${
HELM_ROOT
}
/scripts/env.sh"
]
;
then
source
"
${
HELM_ROOT
}
/scripts/env.sh"
fi
K8S_VERSION
=
${
K8S_VERSION
:-
1
.2.0
}
K8S_VERSION
=
${
K8S_VERSION
:-
1
.2.0
}
KUBE_PORT
=
${
KUBE_PORT
:-
8080
}
KUBE_PORT
=
${
KUBE_PORT
:-
8080
}
KUBE_CONFIG
=
"
${
HELM_ROOT
}
/scripts/kubeconfig"
KUBE_HOST
=
${
KUBE_HOST
:-
localhost
}
KUBE_HOST
=
${
KUBE_HOST
:-
localhost
}
is_docker_machine
()
{
[[
$(
docker-machine active 2>/dev/null
)
]]
}
active_docker_machine
()
{
if
command
-v
docker-machine
>
/dev/null 2>&1
;
then
docker-machine active
fi
}
if
is_docker_machine
;
then
if
is_docker_machine
;
then
KUBE_HOST
=
$(
docker-machine ip
"
$(
active_docker_machine
)
"
)
KUBE_HOST
=
$(
docker-machine ip
"
$(
active_docker_machine
)
"
)
fi
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