mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #87155 from kolorful/patch-3
Fix a comment in job_controller
This commit is contained in:
commit
be31023a95
@ -202,7 +202,7 @@ func (jm *Controller) resolveControllerRef(namespace string, controllerRef *meta
|
||||
func (jm *Controller) addPod(obj interface{}) {
|
||||
pod := obj.(*v1.Pod)
|
||||
if pod.DeletionTimestamp != nil {
|
||||
// on a restart of the controller controller, it's possible a new pod shows up in a state that
|
||||
// on a restart of the controller, it's possible a new pod shows up in a state that
|
||||
// is already pending deletion. Prevent the pod from being a creation observation.
|
||||
jm.deletePod(pod)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user