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
6b066ee1
Commit
6b066ee1
authored
Apr 24, 2017
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e2e: handle nil ReplicaSet in checkDeploymentRevision
deploymentutil.GetNewReplicaSet is allowed to return nil.
parent
e38c575a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
deployment.go
test/e2e/deployment.go
+1
-0
No files found.
test/e2e/deployment.go
View file @
6b066ee1
...
@@ -127,6 +127,7 @@ func checkDeploymentRevision(c clientset.Interface, ns, deploymentName, revision
...
@@ -127,6 +127,7 @@ func checkDeploymentRevision(c clientset.Interface, ns, deploymentName, revision
// Check revision of the new replica set of this deployment
// Check revision of the new replica set of this deployment
newRS
,
err
:=
deploymentutil
.
GetNewReplicaSet
(
deployment
,
c
)
newRS
,
err
:=
deploymentutil
.
GetNewReplicaSet
(
deployment
,
c
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
newRS
)
.
NotTo
(
Equal
(
nil
))
Expect
(
newRS
.
Annotations
)
.
NotTo
(
Equal
(
nil
))
Expect
(
newRS
.
Annotations
)
.
NotTo
(
Equal
(
nil
))
Expect
(
newRS
.
Annotations
[
deploymentutil
.
RevisionAnnotation
])
.
Should
(
Equal
(
revision
))
Expect
(
newRS
.
Annotations
[
deploymentutil
.
RevisionAnnotation
])
.
Should
(
Equal
(
revision
))
// Check revision of This deployment
// Check revision of This deployment
...
...
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