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
1a59e031
Commit
1a59e031
authored
Dec 03, 2015
by
Marek Grabowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17993 from eosrei/1111-minion-node-hack-e2e
Minion->Node rename: comments/vars for e2e.go, e2e.sh, resize_nodes.go for #1111
parents
813a4c9d
6ac427a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
e2e.go
hack/e2e.go
+4
-4
e2e.sh
hack/jenkins/e2e.sh
+2
-2
resize_nodes.go
test/e2e/resize_nodes.go
+3
-3
No files found.
hack/e2e.go
View file @
1a59e031
...
@@ -60,7 +60,7 @@ const (
...
@@ -60,7 +60,7 @@ const (
downloadDirName
=
"_output/downloads"
downloadDirName
=
"_output/downloads"
tarDirName
=
"server"
tarDirName
=
"server"
tempDirName
=
"upgrade-e2e-temp-dir"
tempDirName
=
"upgrade-e2e-temp-dir"
min
MinionCount
=
2
min
NodeCount
=
2
)
)
var
(
var
(
...
@@ -185,7 +185,7 @@ func Up() bool {
...
@@ -185,7 +185,7 @@ func Up() bool {
// Ensure that the cluster is large engough to run the e2e tests.
// Ensure that the cluster is large engough to run the e2e tests.
func
ValidateClusterSize
()
{
func
ValidateClusterSize
()
{
// Check that there are at least min
MinionCount minion
s running
// Check that there are at least min
NodeCount node
s running
cmd
:=
exec
.
Command
(
path
.
Join
(
*
root
,
"hack/e2e-internal/e2e-cluster-size.sh"
))
cmd
:=
exec
.
Command
(
path
.
Join
(
*
root
,
"hack/e2e-internal/e2e-cluster-size.sh"
))
if
*
verbose
{
if
*
verbose
{
cmd
.
Stderr
=
os
.
Stderr
cmd
.
Stderr
=
os
.
Stderr
...
@@ -200,8 +200,8 @@ func ValidateClusterSize() {
...
@@ -200,8 +200,8 @@ func ValidateClusterSize() {
log
.
Fatalf
(
"Could not count number of nodes to validate cluster size (%s)"
,
err
)
log
.
Fatalf
(
"Could not count number of nodes to validate cluster size (%s)"
,
err
)
}
}
if
numNodes
<
min
Minion
Count
{
if
numNodes
<
min
Node
Count
{
log
.
Fatalf
(
"Cluster size (%d) is too small to run e2e tests. %d
Minions are required."
,
numNodes
,
minMinion
Count
)
log
.
Fatalf
(
"Cluster size (%d) is too small to run e2e tests. %d
Nodes are required."
,
numNodes
,
minNode
Count
)
}
}
}
}
...
...
hack/jenkins/e2e.sh
View file @
1a59e031
...
@@ -320,7 +320,7 @@ GCE_FLAKY_TESTS=(
...
@@ -320,7 +320,7 @@ GCE_FLAKY_TESTS=(
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
# issue: #17518
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
# issue: #17518
"DaemonRestart
\s
Controller
\s
Manager"
# issue: #17829
"DaemonRestart
\s
Controller
\s
Manager"
# issue: #17829
"Resource
\s
usage
\s
of
\s
system
\s
containers"
# issue: #13931
"Resource
\s
usage
\s
of
\s
system
\s
containers"
# issue: #13931
"allows
\s
scheduling
\s
of
\s
pods
\s
on
\s
a
\s
minion
\s
after
\s
it
\s
rejoins
\s
the
\s
cluster"
# file: resize_nodes.go, issue: #17830
"allows
\s
scheduling
\s
of
\s
pods
\s
on
\s
a
\s
node
\s
after
\s
it
\s
rejoins
\s
the
\s
cluster"
# file: resize_nodes.go, issue: #17830
"NodeOutOfDisk"
# issue: 17687
"NodeOutOfDisk"
# issue: 17687
)
)
...
@@ -1229,7 +1229,7 @@ case ${JOB_NAME} in
...
@@ -1229,7 +1229,7 @@ case ${JOB_NAME} in
NUM_NODES
=
"11"
NUM_NODES
=
"11"
MASTER_SIZE
=
"n1-standard-4"
MASTER_SIZE
=
"n1-standard-4"
NODE_SIZE
=
"n1-standard-8"
# Note: can fit about 17 hollow nodes per core
NODE_SIZE
=
"n1-standard-8"
# Note: can fit about 17 hollow nodes per core
# so NUM_NODES x cores_per_
minion
should
# so NUM_NODES x cores_per_
node
should
# be set accordingly.
# be set accordingly.
KUBE_GCE_INSTANCE_PREFIX
=
"kubemark1000"
KUBE_GCE_INSTANCE_PREFIX
=
"kubemark1000"
E2E_ZONE
=
"asia-east1-a"
E2E_ZONE
=
"asia-east1-a"
...
...
test/e2e/resize_nodes.go
View file @
1a59e031
...
@@ -485,7 +485,7 @@ var _ = Describe("Nodes", func() {
...
@@ -485,7 +485,7 @@ var _ = Describe("Nodes", func() {
})
})
Describe
(
"Network"
,
func
()
{
Describe
(
"Network"
,
func
()
{
Context
(
"when a
minion
node becomes unreachable"
,
func
()
{
Context
(
"when a node becomes unreachable"
,
func
()
{
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
SkipUnlessProviderIs
(
"gce"
,
"gke"
,
"aws"
)
SkipUnlessProviderIs
(
"gce"
,
"gke"
,
"aws"
)
SkipUnlessNodeCountIsAtLeast
(
2
)
SkipUnlessNodeCountIsAtLeast
(
2
)
...
@@ -497,8 +497,8 @@ var _ = Describe("Nodes", func() {
...
@@ -497,8 +497,8 @@ var _ = Describe("Nodes", func() {
// 1. pods from a uncontactable nodes are rescheduled
// 1. pods from a uncontactable nodes are rescheduled
// 2. when a node joins the cluster, it can host new pods.
// 2. when a node joins the cluster, it can host new pods.
// Factor out the cases into two separate tests.
// Factor out the cases into two separate tests.
It
(
"[replication controller] recreates pods scheduled on the unreachable
minion
node "
+
It
(
"[replication controller] recreates pods scheduled on the unreachable node "
+
"AND allows scheduling of pods on a
minion
after it rejoins the cluster"
,
func
()
{
"AND allows scheduling of pods on a
node
after it rejoins the cluster"
,
func
()
{
// Create a replication controller for a service that serves its hostname.
// Create a replication controller for a service that serves its hostname.
// The source for the Docker container kubernetes/serve_hostname is in contrib/for-demos/serve_hostname
// The source for the Docker container kubernetes/serve_hostname is in contrib/for-demos/serve_hostname
...
...
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