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
2b756ca5
Commit
2b756ca5
authored
Feb 17, 2016
by
Joe Finney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move E2E kube-up call into test-setup from e2e-internal.
parent
98981ac3
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
18 deletions
+25
-18
util.sh
cluster/aws/util.sh
+3
-1
util.sh
cluster/gce/util.sh
+11
-1
util.sh
cluster/gke/util.sh
+4
-1
util.sh
cluster/juju/util.sh
+2
-2
util.sh
cluster/libvirt-coreos/util.sh
+1
-1
util.sh
cluster/mesos/docker/util.sh
+2
-1
util.sh
cluster/vagrant/util.sh
+1
-0
e2e-up.sh
hack/e2e-internal/e2e-up.sh
+0
-10
e2e.go
hack/e2e.go
+1
-1
No files found.
cluster/aws/util.sh
View file @
2b756ca5
...
@@ -1443,11 +1443,13 @@ function test-build-release {
...
@@ -1443,11 +1443,13 @@ function test-build-release {
}
}
# Execute prior to running tests to initialize required structure. This is
# Execute prior to running tests to initialize required structure. This is
# called from hack/e2e.go only when running -up
(it is run after kube-up)
.
# called from hack/e2e.go only when running -up.
#
#
# Assumed vars:
# Assumed vars:
# Variables from config.sh
# Variables from config.sh
function
test-setup
{
function
test-setup
{
"
${
KUBE_ROOT
}
/cluster/kube-up.sh"
VPC_ID
=
$(
get_vpc_id
)
VPC_ID
=
$(
get_vpc_id
)
detect-security-groups
detect-security-groups
...
...
cluster/gce/util.sh
View file @
2b756ca5
...
@@ -1192,7 +1192,7 @@ function test-build-release {
...
@@ -1192,7 +1192,7 @@ function test-build-release {
}
}
# Execute prior to running tests to initialize required structure. This is
# Execute prior to running tests to initialize required structure. This is
# called from hack/e2e.go only when running -up
(it is run after kube-up)
.
# called from hack/e2e.go only when running -up.
#
#
# Assumed vars:
# Assumed vars:
# Variables from config.sh
# Variables from config.sh
...
@@ -1200,6 +1200,16 @@ function test-setup {
...
@@ -1200,6 +1200,16 @@ function test-setup {
# Detect the project into $PROJECT if it isn't set
# Detect the project into $PROJECT if it isn't set
detect-project
detect-project
if
[[
${
MULTIZONE
:-}
==
"true"
]]
;
then
for
KUBE_GCE_ZONE
in
${
E2E_ZONES
}
do
KUBE_GCE_ZONE
=
"
${
KUBE_GCE_ZONE
}
"
KUBE_USE_EXISTING_MASTER
=
"
${
KUBE_USE_EXISTING_MASTER
:-}
"
"
${
KUBE_ROOT
}
/cluster/kube-up.sh"
KUBE_USE_EXISTING_MASTER
=
"true"
# For subsequent zones we use the existing master
done
else
"
${
KUBE_ROOT
}
/cluster/kube-up.sh"
fi
# Open up port 80 & 8080 so common containers on minions can be reached
# Open up port 80 & 8080 so common containers on minions can be reached
# TODO(roberthbailey): Remove this once we are no longer relying on hostPorts.
# TODO(roberthbailey): Remove this once we are no longer relying on hostPorts.
local
start
=
`
date
+%s
`
local
start
=
`
date
+%s
`
...
...
cluster/gke/util.sh
View file @
2b756ca5
...
@@ -167,8 +167,11 @@ function test-setup() {
...
@@ -167,8 +167,11 @@ function test-setup() {
echo
"... in gke:test-setup()"
>
&2
echo
"... in gke:test-setup()"
>
&2
# Detect the project into $PROJECT if it isn't set
# Detect the project into $PROJECT if it isn't set
detect-project
>
&2
detect-project
>
&2
detect-nodes
>
&2
"
${
KUBE_ROOT
}
/cluster/kube-up.sh"
detect-nodes
>
&2
# At this point, CLUSTER_NAME should have been used, so its value is final.
# At this point, CLUSTER_NAME should have been used, so its value is final.
NODE_TAG
=
$(
$GCLOUD
compute instances describe
${
NODE_NAMES
[0]
}
--project
=
"
${
PROJECT
}
"
--zone
=
"
${
ZONE
}
"
|
grep
-o
"gke-
${
CLUSTER_NAME
}
-.
\{
8
\}
-node"
|
head
-1
)
NODE_TAG
=
$(
$GCLOUD
compute instances describe
${
NODE_NAMES
[0]
}
--project
=
"
${
PROJECT
}
"
--zone
=
"
${
ZONE
}
"
|
grep
-o
"gke-
${
CLUSTER_NAME
}
-.
\{
8
\}
-node"
|
head
-1
)
OLD_NODE_TAG
=
"k8s-
${
CLUSTER_NAME
}
-node"
OLD_NODE_TAG
=
"k8s-
${
CLUSTER_NAME
}
-node"
...
...
cluster/juju/util.sh
View file @
2b756ca5
...
@@ -165,9 +165,9 @@ function test-build-release {
...
@@ -165,9 +165,9 @@ function test-build-release {
}
}
# Execute prior to running tests to initialize required structure. This is
# Execute prior to running tests to initialize required structure. This is
# called from hack/e2e.go only when running -up
(it is run after kube-up)
.
# called from hack/e2e.go only when running -up.
function
test-setup
{
function
test-setup
{
echo
"test-setup() "
1>&2
"
${
KUBE_ROOT
}
/cluster/kube-up.sh"
}
}
# Execute after running tests to perform any required clean-up. This is called
# Execute after running tests to perform any required clean-up. This is called
...
...
cluster/libvirt-coreos/util.sh
View file @
2b756ca5
...
@@ -316,7 +316,7 @@ function test-build-release {
...
@@ -316,7 +316,7 @@ function test-build-release {
# Execute prior to running tests to initialize required structure
# Execute prior to running tests to initialize required structure
function
test-setup
{
function
test-setup
{
echo
"TODO
"
"
${
KUBE_ROOT
}
/cluster/kube-up.sh
"
}
}
# Execute after running tests to perform any required clean-up
# Execute after running tests to perform any required clean-up
...
...
cluster/mesos/docker/util.sh
View file @
2b756ca5
...
@@ -317,7 +317,8 @@ function kube-down {
...
@@ -317,7 +317,8 @@ function kube-down {
}
}
function
test-setup
{
function
test-setup
{
echo
"TODO: test-setup"
1>&2
echo
"test-setup"
1>&2
"
${
KUBE_ROOT
}
/cluster/kube-up.sh"
}
}
# Execute after running tests to perform any required clean-up
# Execute after running tests to perform any required clean-up
...
...
cluster/vagrant/util.sh
View file @
2b756ca5
...
@@ -317,6 +317,7 @@ function test-build-release {
...
@@ -317,6 +317,7 @@ function test-build-release {
# Execute prior to running tests to initialize required structure
# Execute prior to running tests to initialize required structure
function
test-setup
{
function
test-setup
{
"
${
KUBE_ROOT
}
/cluster/kube-up.sh"
echo
"Vagrant test setup complete"
1>&2
echo
"Vagrant test setup complete"
1>&2
}
}
...
...
hack/e2e-internal/e2e-up.sh
View file @
2b756ca5
...
@@ -31,14 +31,4 @@ source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
...
@@ -31,14 +31,4 @@ source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
prepare-e2e
prepare-e2e
if
[[
${
MULTIZONE
:-}
==
"true"
]]
;
then
for
KUBE_GCE_ZONE
in
${
E2E_ZONES
}
do
KUBE_GCE_ZONE
=
"
${
KUBE_GCE_ZONE
}
"
KUBE_USE_EXISTING_MASTER
=
"
${
KUBE_USE_EXISTING_MASTER
:-}
"
KUBE_TEST_DEBUG
=
y
"
${
KUBE_VERSION_ROOT
}
/cluster/kube-up.sh"
KUBE_USE_EXISTING_MASTER
=
"true"
# For subsequent zones we use the existing master
done
else
KUBE_TEST_DEBUG
=
y
"
${
KUBE_VERSION_ROOT
}
/cluster/kube-up.sh"
fi
test-setup
test-setup
hack/e2e.go
View file @
2b756ca5
...
@@ -122,6 +122,7 @@ func main() {
...
@@ -122,6 +122,7 @@ func main() {
}
}
os
.
Setenv
(
"KUBECTL"
,
versionRoot
+
`/cluster/kubectl.sh`
+
kubectlArgs
())
os
.
Setenv
(
"KUBECTL"
,
versionRoot
+
`/cluster/kubectl.sh`
+
kubectlArgs
())
os
.
Setenv
(
"KUBE_TEST_DEBUG"
,
"y"
)
if
*
pushup
{
if
*
pushup
{
if
IsUp
()
{
if
IsUp
()
{
...
@@ -175,7 +176,6 @@ func Up() bool {
...
@@ -175,7 +176,6 @@ func Up() bool {
return
false
return
false
}
}
}
}
return
finishRunning
(
"up"
,
exec
.
Command
(
path
.
Join
(
*
root
,
"hack/e2e-internal/e2e-up.sh"
)))
return
finishRunning
(
"up"
,
exec
.
Command
(
path
.
Join
(
*
root
,
"hack/e2e-internal/e2e-up.sh"
)))
}
}
...
...
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