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
47901b7e
Commit
47901b7e
authored
Jun 03, 2015
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the last provider-specific handling in kubectl.sh, ginkgo-e2e.sh
parent
27704bea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
common.sh
cluster/common.sh
+2
-2
util.sh
cluster/juju/util.sh
+3
-0
util.sh
cluster/ubuntu/util.sh
+4
-1
ginkgo-e2e.sh
hack/ginkgo-e2e.sh
+0
-7
No files found.
cluster/common.sh
View file @
47901b7e
...
@@ -65,7 +65,7 @@ function create-kubeconfig() {
...
@@ -65,7 +65,7 @@ function create-kubeconfig() {
user_args+
=(
user_args+
=(
"--token=
${
KUBE_BEARER_TOKEN
}
"
"--token=
${
KUBE_BEARER_TOKEN
}
"
)
)
el
se
el
if
[[
!
-z
"
${
KUBE_USER
:-}
"
&&
!
-z
"
${
KUBE_PASSWORD
:-}
"
]]
;
then
user_args+
=(
user_args+
=(
"--username=
${
KUBE_USER
}
"
"--username=
${
KUBE_USER
}
"
"--password=
${
KUBE_PASSWORD
}
"
"--password=
${
KUBE_PASSWORD
}
"
...
@@ -87,7 +87,7 @@ function create-kubeconfig() {
...
@@ -87,7 +87,7 @@ function create-kubeconfig() {
# If we have a bearer token, also create a credential entry with basic auth
# If we have a bearer token, also create a credential entry with basic auth
# so that it is easy to discover the basic auth password for your cluster
# so that it is easy to discover the basic auth password for your cluster
# to use in a web browser.
# to use in a web browser.
if
[[
!
-z
"
${
KUBE_BEARER_TOKEN
:-}
"
]]
;
then
if
[[
!
-z
"
${
KUBE_BEARER_TOKEN
:-}
"
&&
!
-z
"
${
KUBE_USER
:-}
"
&&
!
-z
"
${
KUBE_PASSWORD
:-}
"
]]
;
then
"
${
kubectl
}
"
config set-credentials
"
${
CONTEXT
}
-basic-auth"
"--username=
${
KUBE_USER
}
"
"--password=
${
KUBE_PASSWORD
}
"
"
${
kubectl
}
"
config set-credentials
"
${
CONTEXT
}
-basic-auth"
"--username=
${
KUBE_USER
}
"
"--password=
${
KUBE_PASSWORD
}
"
fi
fi
...
...
cluster/juju/util.sh
View file @
47901b7e
...
@@ -57,6 +57,9 @@ function kube-up() {
...
@@ -57,6 +57,9 @@ function kube-up() {
sleep-status
sleep-status
detect-master
detect-master
detect-minions
detect-minions
export
KUBE_MASTER_IP
=
"
${
KUBE_MASTER_IP
}
:8080"
export
CONTEXT
=
"juju"
}
}
function
kube-down
()
{
function
kube-down
()
{
...
...
cluster/ubuntu/util.sh
View file @
47901b7e
...
@@ -346,11 +346,14 @@ function kube-up {
...
@@ -346,11 +346,14 @@ function kube-up {
}
}
((
ii
=
ii+1
))
((
ii
=
ii+1
))
done
done
wait
wait
verify-cluster
verify-cluster
detect-master
export
KUBE_MASTER_IP
=
"
${
KUBE_MASTER_IP
}
:8080"
export
CONTEXT
=
"ubuntu"
create-kubeconfig
}
}
function
provision-master
()
{
function
provision-master
()
{
...
...
hack/ginkgo-e2e.sh
View file @
47901b7e
...
@@ -60,13 +60,6 @@ if [[ -z "${AUTH_CONFIG:-}" ]]; then
...
@@ -60,13 +60,6 @@ if [[ -z "${AUTH_CONFIG:-}" ]]; then
auth_config
=(
auth_config
=(
"--kubeconfig=
${
KUBECONFIG
:-
$DEFAULT_KUBECONFIG
}
"
"--kubeconfig=
${
KUBECONFIG
:-
$DEFAULT_KUBECONFIG
}
"
)
)
if
[[
"
${
KUBERNETES_PROVIDER
}
"
==
"gke"
]]
;
then
# gcloud doesn't override the current-context, so we explicitly set it
detect-project &> /dev/null
auth_config+
=(
"--context=gke_
${
PROJECT
}
_
${
ZONE
}
_
${
CLUSTER_NAME
}
"
)
fi
fi
fi
else
else
echo
"Conformance Test. No cloud-provider-specific preparation."
echo
"Conformance Test. No cloud-provider-specific preparation."
...
...
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