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
5582856e
Commit
5582856e
authored
Sep 06, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix debugging log in RC
parent
5e22e51f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
replication_controller.go
pkg/controller/replication/replication_controller.go
+2
-1
No files found.
pkg/controller/replication/replication_controller.go
View file @
5582856e
...
@@ -320,7 +320,7 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) {
...
@@ -320,7 +320,7 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) {
rm
.
lookupCache
.
InvalidateAll
()
rm
.
lookupCache
.
InvalidateAll
()
}
}
// TODO: Remove when #31981 is resolved!
// TODO: Remove when #31981 is resolved!
glog
.
Infof
(
"Observed updated replication controller %v.
Pod count change: %d->%d"
,
curRC
.
Name
,
oldRC
.
Status
.
Replicas
,
curRC
.
Status
.
Replicas
)
glog
.
Infof
(
"Observed updated replication controller %v.
Desired pod count change: %d->%d"
,
curRC
.
Name
,
oldRC
.
Spec
.
Replicas
,
curRC
.
Spec
.
Replicas
)
// You might imagine that we only really need to enqueue the
// You might imagine that we only really need to enqueue the
// controller when Spec changes, but it is safer to sync any
// controller when Spec changes, but it is safer to sync any
...
@@ -335,6 +335,7 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) {
...
@@ -335,6 +335,7 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) {
// that bad as rcs that haven't met expectations yet won't
// that bad as rcs that haven't met expectations yet won't
// sync, and all the listing is done using local stores.
// sync, and all the listing is done using local stores.
if
oldRC
.
Status
.
Replicas
!=
curRC
.
Status
.
Replicas
{
if
oldRC
.
Status
.
Replicas
!=
curRC
.
Status
.
Replicas
{
// TODO: Should we log status or spec?
glog
.
V
(
4
)
.
Infof
(
"Observed updated replica count for rc: %v, %d->%d"
,
curRC
.
Name
,
oldRC
.
Status
.
Replicas
,
curRC
.
Status
.
Replicas
)
glog
.
V
(
4
)
.
Infof
(
"Observed updated replica count for rc: %v, %d->%d"
,
curRC
.
Name
,
oldRC
.
Status
.
Replicas
,
curRC
.
Status
.
Replicas
)
}
}
rm
.
enqueueController
(
cur
)
rm
.
enqueueController
(
cur
)
...
...
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