Fix a comment in job_controller

This commit is contained in:
Kewei Ma 2020-01-13 10:09:06 -06:00 committed by GitHub
parent 36e40fb850
commit 34fce9faee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ func (jm *JobController) resolveControllerRef(namespace string, controllerRef *m
func (jm *JobController) 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