Merge pull request #87155 from kolorful/patch-3

Fix a comment in job_controller
This commit is contained in:
Kubernetes Prow Robot 2020-06-19 08:51:58 -07:00 committed by GitHub
commit be31023a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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