Let controllers ignore initialization timeout error when creating a pod.

This commit is contained in:
Chao Xu
2017-07-31 18:07:46 -07:00
parent 04b2c29a5a
commit 97e07e5b52
7 changed files with 165 additions and 14 deletions

View File

@@ -580,7 +580,7 @@ func (r RealPodControl) createPods(nodeName, namespace string, template *v1.PodT
}
if newPod, err := r.KubeClient.Core().Pods(namespace).Create(pod); err != nil {
r.Recorder.Eventf(object, v1.EventTypeWarning, FailedCreatePodReason, "Error creating: %v", err)
return fmt.Errorf("unable to create pods: %v", err)
return err
} else {
accessor, err := meta.Accessor(object)
if err != nil {