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
4505f122
Unverified
Commit
4505f122
authored
Feb 26, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Feb 26, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72738 from alexbrand/fix-serve-hostname
DaemonSet e2e: Update image and rolling upgrade test timeout
parents
09d07cf4
d971597b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
daemon_set.go
test/e2e/apps/daemon_set.go
+9
-2
No files found.
test/e2e/apps/daemon_set.go
View file @
4505f122
...
...
@@ -93,7 +93,7 @@ var _ = SIGDescribe("Daemon set [Serial]", func() {
f
=
framework
.
NewDefaultFramework
(
"daemonsets"
)
image
:=
framework
.
ServeHostname
Image
image
:=
Nginx
Image
dsName
:=
"daemon-set"
var
ns
string
...
...
@@ -350,8 +350,15 @@ var _ = SIGDescribe("Daemon set [Serial]", func() {
ds
,
err
=
c
.
AppsV1
()
.
DaemonSets
(
ns
)
.
Patch
(
dsName
,
types
.
StrategicMergePatchType
,
[]
byte
(
patch
))
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
// Time to complete the rolling upgrade is proportional to the number of nodes in the cluster.
// Get the number of nodes, and set the timeout appropriately.
nodes
,
err
:=
c
.
CoreV1
()
.
Nodes
()
.
List
(
metav1
.
ListOptions
{})
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
nodeCount
:=
len
(
nodes
.
Items
)
retryTimeout
:=
dsRetryTimeout
+
time
.
Duration
(
nodeCount
*
30
)
*
time
.
Second
By
(
"Check that daemon pods images are updated."
)
err
=
wait
.
PollImmediate
(
dsRetryPeriod
,
dsR
etryTimeout
,
checkDaemonPodsImageAndAvailability
(
c
,
ds
,
RedisImage
,
1
))
err
=
wait
.
PollImmediate
(
dsRetryPeriod
,
r
etryTimeout
,
checkDaemonPodsImageAndAvailability
(
c
,
ds
,
RedisImage
,
1
))
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
By
(
"Check that daemon pods are still running on every node of the cluster."
)
...
...
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