Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ensureJobConditionStatus (0.21 sec)

  1. pkg/controller/job/job_controller.go

    			// updates.
    			if job.Spec.Suspend != nil && *job.Spec.Suspend {
    				// Job can be in the suspended state only if it is NOT completed.
    				var isUpdated bool
    				job.Status.Conditions, isUpdated = ensureJobConditionStatus(job.Status.Conditions, batch.JobSuspended, v1.ConditionTrue, "JobSuspended", "Job suspended", jm.clock.Now())
    				if isUpdated {
    					suspendCondChanged = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller_test.go

    			expectUpdate: false,
    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			gotList, isUpdated := ensureJobConditionStatus(tc.haveList, tc.wantType, tc.wantStatus, tc.wantReason, "", realClock.Now())
    			if isUpdated != tc.expectUpdate {
    				t.Errorf("Got isUpdated=%v, want %v", isUpdated, tc.expectUpdate)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
Back to top