mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix a comment in job_controller
This commit is contained in:
parent
36e40fb850
commit
34fce9faee
@ -197,7 +197,7 @@ func (jm *JobController) resolveControllerRef(namespace string, controllerRef *m
|
|||||||
func (jm *JobController) addPod(obj interface{}) {
|
func (jm *JobController) addPod(obj interface{}) {
|
||||||
pod := obj.(*v1.Pod)
|
pod := obj.(*v1.Pod)
|
||||||
if pod.DeletionTimestamp != nil {
|
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.
|
// is already pending deletion. Prevent the pod from being a creation observation.
|
||||||
jm.deletePod(pod)
|
jm.deletePod(pod)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user