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
9d1f07da
Commit
9d1f07da
authored
Dec 10, 2015
by
Nikhil Jindal
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18331 from janetkuo/fix-deployment-getnewrc
Fix bug when getting new RC of a deployment
parents
b9aa7108
72bd4e8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
deployment.go
pkg/util/deployment/deployment.go
+3
-3
No files found.
pkg/util/deployment/deployment.go
View file @
9d1f07da
...
@@ -77,10 +77,10 @@ func GetNewRC(deployment extensions.Deployment, c client.Interface) (*api.Replic
...
@@ -77,10 +77,10 @@ func GetNewRC(deployment extensions.Deployment, c client.Interface) (*api.Replic
}
}
newRCTemplate
:=
GetNewRCTemplate
(
deployment
)
newRCTemplate
:=
GetNewRCTemplate
(
deployment
)
for
_
,
rc
:=
range
rcList
.
Items
{
for
i
:=
range
rcList
.
Items
{
if
api
.
Semantic
.
DeepEqual
(
rc
.
Spec
.
Template
,
&
newRCTemplate
)
{
if
api
.
Semantic
.
DeepEqual
(
rc
List
.
Items
[
i
]
.
Spec
.
Template
,
&
newRCTemplate
)
{
// This is the new RC.
// This is the new RC.
return
&
rc
,
nil
return
&
rc
List
.
Items
[
i
]
,
nil
}
}
}
}
// new RC does not exist.
// new RC does not exist.
...
...
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