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
c8f1019c
Commit
c8f1019c
authored
Jan 05, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19311 from janetkuo/flake-deployment-rollover
Auto commit by PR queue bot
parents
d1668c66
7d5db746
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
deployment.go
test/e2e/deployment.go
+1
-6
No files found.
test/e2e/deployment.go
View file @
c8f1019c
...
@@ -292,18 +292,13 @@ func testRolloverDeployment(f *Framework) {
...
@@ -292,18 +292,13 @@ func testRolloverDeployment(f *Framework) {
deployment
,
err
:=
c
.
Deployments
(
ns
)
.
Get
(
deploymentName
)
deployment
,
err
:=
c
.
Deployments
(
ns
)
.
Get
(
deploymentName
)
// Make sure the deployment starts to scale up and down RCs
// Make sure the deployment starts to scale up and down RCs
waitForPartialEvents
(
c
,
ns
,
deployment
,
2
)
waitForPartialEvents
(
c
,
ns
,
deployment
,
2
)
events
,
err
:=
c
.
Events
(
ns
)
.
Search
(
deployment
)
if
err
!=
nil
{
Logf
(
"error in listing events: %s"
,
err
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
}
newRC
,
err
:=
deploymentutil
.
GetNewRC
(
*
deployment
,
c
)
newRC
,
err
:=
deploymentutil
.
GetNewRC
(
*
deployment
,
c
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
newRC
)
.
NotTo
(
Equal
(
nil
))
Expect
(
newRC
)
.
NotTo
(
Equal
(
nil
))
// Before the deployment finishes, update the deployment to rollover the above 2 rcs and bring up redis pods.
// Before the deployment finishes, update the deployment to rollover the above 2 rcs and bring up redis pods.
// If the deployment already finished here, the test would fail. When this happens, increase its minReadySeconds or replicas to prevent it.
// If the deployment already finished here, the test would fail. When this happens, increase its minReadySeconds or replicas to prevent it.
Expect
(
len
(
events
.
Items
)
)
.
Should
(
BeNumerically
(
"<"
,
deploymentReplicas
))
Expect
(
newRC
.
Spec
.
Replicas
)
.
Should
(
BeNumerically
(
"<"
,
deploymentReplicas
))
updatedDeploymentImage
:=
"redis"
updatedDeploymentImage
:=
"redis"
newDeployment
.
Spec
.
Template
.
Spec
.
Containers
[
0
]
.
Name
=
updatedDeploymentImage
newDeployment
.
Spec
.
Template
.
Spec
.
Containers
[
0
]
.
Name
=
updatedDeploymentImage
newDeployment
.
Spec
.
Template
.
Spec
.
Containers
[
0
]
.
Image
=
updatedDeploymentImage
newDeployment
.
Spec
.
Template
.
Spec
.
Containers
[
0
]
.
Image
=
updatedDeploymentImage
...
...
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