cleanupTerminatedPods is responsible for checking whether a pod has been
terminated and force a status update to trigger the pod deletion. However, this
function is called in the periodic clenup routine, which runs every 2 seconds.
In other words, it forces a status update for each non-running (and not yet
deleted in the apiserver) pod. When batch deleting tens of pods, the rate of
new updates surpasses what the status manager can handle, causing numerous
redundant requests (and the status channel to be full).
This change forces a status update only when detecting the DeletionTimestamp is
set for a terminated pod. Note that for other non-terminated pods, the pod
workers should be responsible for setting the correct status after killling all
the containers.
Remove E2E_CLUSTER_NAME, E2E_NETWORK, and KUBE_GCE_INSTANCE_PREFIX from jobs that don't need them, because they are in their own project, and add defaults
Fail on leaked resources by default
Kill E2E_SET_CLUSTER_API_VERSION
Rely on defaults for E2E_UP, E2E_TEST, E2E_DOWN
Only PUBLISH_GREEN_VERSION for kubernetes-e2e-gce
Directly export ZONE vars rather than chaining and setting locals
Collapse E2E_CLUSTER_NAME, E2E_NETWORK, and KUBE_GCE_INSTANCE_PREFIX into E2E_NAME (always take the shortest of the three, to avoid name length problems
Factor out soak vars
Remove incorrect feature enablement ENV vars
export GINKGO_TEST_ARGS directly, rather than looping through export at the bottom
Directly export E2E Control Variables
Export KUBEMARK ENV vars directly
export KUBERNETES_PROVIDER directly
Export JENKINS_PUBLISHED_VERSION directly, and don't use it where unnecessary; remove old CURRENT_RELEASE_PUBLISHED_VERSION
export PROJECT and NETWORK_PROVIDER directly
export node ENV vars directly
export other shared cluster ENV vars directly
Directly export CLOUDSDK ENV vars
export GCE and AWS ENVs directly
Various cleanup, including refactoring upgrades
Fixup: no PERFORMANCE env for AWS
Address comment
Fixes for comments up to cebf501
Address comments through 81f39b8
Fix: default E2E_UP, E2E_TEST, E2E_DOWN
Use JENKINS_FORCE_GET_TARS for upgrade jobs; fixes through 140ea2b
Fix ubernetes-lite config
Address rebased 2 comments
Remove tab