Merge pull request #105687 from alculquicondor/job-tracking

Graduate JobTrackingWithFinalizers to beta
This commit is contained in:
Kubernetes Prow Robot
2021-10-19 11:40:37 -07:00
committed by GitHub
7 changed files with 16 additions and 12 deletions

View File

@@ -569,7 +569,7 @@ func TestSuspendJob(t *testing.T) {
validate := func(s string, active int, status v1.ConditionStatus, reason string) {
validateJobPodsStatus(ctx, t, clientSet, job, podsByStatus{
Active: active,
}, false)
}, true)
job, err = clientSet.BatchV1().Jobs(ns.Name).Get(ctx, job.Name, metav1.GetOptions{})
if err != nil {
t.Fatalf("Failed to get Job after %s: %v", s, err)
@@ -615,7 +615,7 @@ func TestSuspendJobControllerRestart(t *testing.T) {
}
validateJobPodsStatus(ctx, t, clientSet, job, podsByStatus{
Active: 0,
}, false)
}, true)
// Disable feature gate and restart controller to test that pods get created.
defer featuregatetesting.SetFeatureGateDuringTest(t, feature.DefaultFeatureGate, features.SuspendJob, false)()
@@ -627,7 +627,7 @@ func TestSuspendJobControllerRestart(t *testing.T) {
}
validateJobPodsStatus(ctx, t, clientSet, job, podsByStatus{
Active: 2,
}, false)
}, true)
}
func TestNodeSelectorUpdate(t *testing.T) {