mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #46637 from mtaufen/fix-nodecontroller-log
Automatic merge from submit-queue (batch tested with PRs 46635, 45619, 46637, 45059, 46415) fix a comment and log message in the nodecontroller I was poking around in the nodecontroller code and this looked wrong.
This commit is contained in:
commit
cb6be1eb06
@ -294,7 +294,7 @@ func NewNodeController(
|
|||||||
},
|
},
|
||||||
DeleteFunc: func(obj interface{}) {
|
DeleteFunc: func(obj interface{}) {
|
||||||
pod, isPod := obj.(*v1.Pod)
|
pod, isPod := obj.(*v1.Pod)
|
||||||
// We can get DeletedFinalStateUnknown instead of *v1.Node here and we need to handle that correctly. #34692
|
// We can get DeletedFinalStateUnknown instead of *v1.Pod here and we need to handle that correctly.
|
||||||
if !isPod {
|
if !isPod {
|
||||||
deletedState, ok := obj.(cache.DeletedFinalStateUnknown)
|
deletedState, ok := obj.(cache.DeletedFinalStateUnknown)
|
||||||
if !ok {
|
if !ok {
|
||||||
@ -303,7 +303,7 @@ func NewNodeController(
|
|||||||
}
|
}
|
||||||
pod, ok = deletedState.Obj.(*v1.Pod)
|
pod, ok = deletedState.Obj.(*v1.Pod)
|
||||||
if !ok {
|
if !ok {
|
||||||
glog.Errorf("DeletedFinalStateUnknown contained non-Node object: %v", deletedState.Obj)
|
glog.Errorf("DeletedFinalStateUnknown contained non-Pod object: %v", deletedState.Obj)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user