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
d845d49d
Commit
d845d49d
authored
Mar 19, 2015
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5437 from lhuard1A/libvirt-coreos_kubeconfig
Make libvirt-coreos generate a .kubeconfig file and have e2e tests use it
parents
407af7b8
fc6e6ed3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
util.sh
cluster/libvirt-coreos/util.sh
+7
-0
ginkgo-e2e.sh
hack/ginkgo-e2e.sh
+8
-8
No files found.
cluster/libvirt-coreos/util.sh
View file @
d845d49d
...
...
@@ -223,6 +223,13 @@ function kube-up {
rm
$domain_xml
done
export
KUBECONFIG
=
"
${
HOME
}
/.kube/.kubeconfig"
local
kubectl
=
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
"
${
kubectl
}
"
config set-cluster libvirt-coreos
--server
=
http://
${
KUBE_MASTER_IP
-
}
:8080
"
${
kubectl
}
"
config set-context libvirt-coreos
--cluster
=
libvirt-coreos
"
${
kubectl
}
"
config use-context libvirt-coreos
--cluster
=
libvirt-coreos
wait-cluster-readiness
echo
"Kubernetes cluster is running. The master is running at:"
...
...
hack/ginkgo-e2e.sh
View file @
d845d49d
...
...
@@ -110,6 +110,10 @@ if [[ -z "${AUTH_CONFIG:-}" ]]; then
auth_config
=(
"--auth_config=
${
HOME
}
/.kube/
${
INSTANCE_PREFIX
}
/kubernetes_auth"
)
elif
[[
"
${
KUBERNETES_PROVIDER
}
"
==
"libvirt-coreos"
]]
;
then
auth_config
=(
"--kubeconfig=
${
HOME
}
/.kube/.kubeconfig"
)
elif
[[
"
${
KUBERNETES_PROVIDER
}
"
==
"conformance_test"
]]
;
then
auth_config
=(
"--auth_config=
${
KUBERNETES_CONFORMANCE_TEST_AUTH_CONFIG
:-}
"
...
...
@@ -118,12 +122,6 @@ if [[ -z "${AUTH_CONFIG:-}" ]]; then
else
auth_config
=()
fi
if
[[
"
$KUBERNETES_PROVIDER
"
==
"libvirt-coreos"
]]
;
then
host
=
"http://
${
KUBE_MASTER_IP
-
}
:8080"
else
host
=
"https://
${
KUBE_MASTER_IP
-
}
"
fi
else
echo
"Conformance Test. No cloud-provider-specific preparation."
KUBERNETES_PROVIDER
=
""
...
...
@@ -131,13 +129,15 @@ else
"--auth_config=
${
AUTH_CONFIG
:-}
"
"--cert_dir=
${
CERT_DIR
:-}
"
)
host
=
"https://
${
KUBE_MASTER_IP
-
}
"
fi
# Use the kubectl binary from the same directory as the e2e binary.
# The --host setting is used only when providing --auth_config
# If --kubeconfig is used, the host to use is retrieved from the .kubeconfig
# file and the one provided with --host is ignored.
export
PATH
=
$(
dirname
"
${
e2e
}
"
)
:
"
${
PATH
}
"
"
${
e2e
}
"
"
${
auth_config
[@]
:+
${
auth_config
[@]
}}
"
\
--host
=
"
$host
"
\
--host
=
"
https://
${
KUBE_MASTER_IP
-
}
"
\
--provider
=
"
${
KUBERNETES_PROVIDER
}
"
\
--gce_project
=
"
${
PROJECT
:-}
"
\
--gce_zone
=
"
${
ZONE
:-}
"
\
...
...
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