mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 10:48:15 +00:00
Wait for Pods to finish before considering Failed in Job (#113860)
* Wait for Pods to finish before considering Failed Limit behavior to feature gates PodDisruptionConditions and JobPodFailurePolicy and jobs with a podFailurePolicy. Change-Id: I926391cc2521b389c8e52962afb0d4a6a845ab8f * Remove check for unsheduled terminating pod Change-Id: I3dc05bb4ea3738604f01bf8cb5fc8cc0f6ea54ec
This commit is contained in:
committed by
GitHub
parent
dc7fd39eb7
commit
7dc36bdf82
@@ -538,6 +538,7 @@ func CreateZoneID(region, zone string) string {
|
||||
// GetKey is a helper function used by controllers unit tests to get the
|
||||
// key for a given kubernetes resource.
|
||||
func GetKey(obj interface{}, t *testing.T) string {
|
||||
t.Helper()
|
||||
tombstone, ok := obj.(cache.DeletedFinalStateUnknown)
|
||||
if ok {
|
||||
// if tombstone , try getting the value from tombstone.Obj
|
||||
|
||||
Reference in New Issue
Block a user