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
5ff85797
Commit
5ff85797
authored
May 28, 2018
by
wojtekt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GKE Regional Clusters upgrade tests
parent
c5f46f9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
nodes_util.go
test/e2e/framework/nodes_util.go
+14
-12
No files found.
test/e2e/framework/nodes_util.go
View file @
5ff85797
...
@@ -205,16 +205,7 @@ func NodeUpgrade(f *Framework, v string, img string) error {
...
@@ -205,16 +205,7 @@ func NodeUpgrade(f *Framework, v string, img string) error {
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
return
waitForNodesReadyAfterUpgrade
(
f
)
// Wait for it to complete and validate nodes are healthy.
//
// TODO(ihmccreery) We shouldn't have to wait for nodes to be ready in
// GKE; the operation shouldn't return until they all are.
Logf
(
"Waiting up to %v for all nodes to be ready after the upgrade"
,
RestartNodeReadyAgainTimeout
)
if
_
,
err
:=
CheckNodesReady
(
f
.
ClientSet
,
TestContext
.
CloudConfig
.
NumNodes
,
RestartNodeReadyAgainTimeout
);
err
!=
nil
{
return
err
}
return
nil
}
}
// TODO(mrhohn): Remove this function when kube-proxy is run as a DaemonSet by default.
// TODO(mrhohn): Remove this function when kube-proxy is run as a DaemonSet by default.
...
@@ -223,9 +214,20 @@ func NodeUpgradeGCEWithKubeProxyDaemonSet(f *Framework, v string, img string, en
...
@@ -223,9 +214,20 @@ func NodeUpgradeGCEWithKubeProxyDaemonSet(f *Framework, v string, img string, en
if
err
:=
nodeUpgradeGCE
(
v
,
img
,
enableKubeProxyDaemonSet
);
err
!=
nil
{
if
err
:=
nodeUpgradeGCE
(
v
,
img
,
enableKubeProxyDaemonSet
);
err
!=
nil
{
return
err
return
err
}
}
return
waitForNodesReadyAfterUpgrade
(
f
)
}
func
waitForNodesReadyAfterUpgrade
(
f
*
Framework
)
error
{
// Wait for it to complete and validate nodes are healthy.
// Wait for it to complete and validate nodes are healthy.
Logf
(
"Waiting up to %v for all nodes to be ready after the upgrade"
,
RestartNodeReadyAgainTimeout
)
//
if
_
,
err
:=
CheckNodesReady
(
f
.
ClientSet
,
TestContext
.
CloudConfig
.
NumNodes
,
RestartNodeReadyAgainTimeout
);
err
!=
nil
{
// TODO(ihmccreery) We shouldn't have to wait for nodes to be ready in
// GKE; the operation shouldn't return until they all are.
numNodes
,
err
:=
NumberOfRegisteredNodes
(
f
.
ClientSet
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"couldn't detect number of nodes"
)
}
Logf
(
"Waiting up to %v for all %d nodes to be ready after the upgrade"
,
RestartNodeReadyAgainTimeout
,
numNodes
)
if
_
,
err
:=
CheckNodesReady
(
f
.
ClientSet
,
numNodes
,
RestartNodeReadyAgainTimeout
);
err
!=
nil
{
return
err
return
err
}
}
return
nil
return
nil
...
...
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