• Kubernetes Submit Queue's avatar
    Merge pull request #49915 from caesarxuchao/controller-ignore-initialize-timeout · f75f49e7
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 49855, 49915)
    
    Let controllers ignore initialization timeout when creating pods
    
    Partially address https://github.com/kubernetes/kubernetes/issues/48893#issuecomment-318540129.
    
    This only updates the controllers that create pods with `GenerateName`.
    
    The controllers ignore the timeout error when creating the pods, depending on how the initialization progress:
    * If the initialization is successful in less than 5 mins, the controller will observe the creation via the informer. All is good.
    * If the initialization fails, server will delete the pod, but the controller won't receive any event. The controller will not create new pod until the Creation expectation expires in 5 min.
    * If the initialization takes too long (> 5 mins), the Creation expectation expires and the controller will create extra pods.
    
    I'll send follow-up PRs to fix the latter two cases, e.g., by refactoring the sharedInformer.
    f75f49e7
Name
Last commit
Last update
..
apimachinery Loading commit data...
apps Loading commit data...
autoscaling Loading commit data...
chaosmonkey Loading commit data...
common Loading commit data...
framework Loading commit data...
generated Loading commit data...
instrumentation Loading commit data...
kubectl Loading commit data...
lifecycle Loading commit data...
manifest Loading commit data...
metrics Loading commit data...
network Loading commit data...
node Loading commit data...
perftype Loading commit data...
scalability Loading commit data...
scheduling Loading commit data...
storage Loading commit data...
testing-manifests Loading commit data...
upgrades Loading commit data...
BUILD Loading commit data...
README.md Loading commit data...
audit.go Loading commit data...
certificates.go Loading commit data...
dashboard.go Loading commit data...
e2e-example-config.json Loading commit data...
e2e.go Loading commit data...
e2e_test.go Loading commit data...
events.go Loading commit data...
example_cluster_dns.go Loading commit data...
examples.go Loading commit data...
generated_clientset.go Loading commit data...
gke_local_ssd.go Loading commit data...
gke_node_pools.go Loading commit data...
limit_range.go Loading commit data...
metrics_grabber_test.go Loading commit data...
network_partition.go Loading commit data...
pod_gc.go Loading commit data...
podpreset.go Loading commit data...
pods.go Loading commit data...
pre_stop.go Loading commit data...
resource_quota.go Loading commit data...
service_accounts.go Loading commit data...
ssh.go Loading commit data...
taints_test.go Loading commit data...
ubernetes_lite.go Loading commit data...