Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for updateStatusHandler (0.12 sec)

  1. pkg/controller/job/job_controller_test.go

    			setPodsStatusesWithIndexes(podIndexer, job, tc.podsWithIndexes)
    
    			actual := job
    			manager.updateStatusHandler = func(ctx context.Context, job *batch.Job) (*batch.Job, error) {
    				actual = job
    				return job, nil
    			}
    
    			// run
    			err = manager.syncJob(context.TODO(), testutil.GetKey(job, t))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller.go

    // run their configured workload.
    type Controller struct {
    	kubeClient clientset.Interface
    	podControl controller.PodControlInterface
    
    	// To allow injection of the following for testing.
    	updateStatusHandler func(ctx context.Context, job *batch.Job) (*batch.Job, error)
    	patchJobHandler     func(ctx context.Context, job *batch.Job, patch []byte) error
    	syncHandler         func(ctx context.Context, jobKey string) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
Back to top