Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for jobSpec (0.09 sec)

  1. pkg/controller/cronjob/cronjob_controllerv2_test.go

    				ObjectMeta: metav1.ObjectMeta{
    					Labels:      map[string]string{"a": "b"},
    					Annotations: map[string]string{"x": "y"},
    				},
    				Spec: jobSpec(),
    			},
    		},
    	}
    }
    
    func jobSpec() batchv1.JobSpec {
    	one := int32(1)
    	return batchv1.JobSpec{
    		Parallelism: &one,
    		Completions: &one,
    		Template: v1.PodTemplateSpec{
    			ObjectMeta: metav1.ObjectMeta{
    				Labels: map[string]string{
    					"foo": "bar",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
  2. pkg/apis/batch/validation/validation.go

    		}
    	}
    	return allErrs
    }
    
    // ValidateJobSpec validates a JobSpec and returns an ErrorList with any errors.
    func ValidateJobSpec(spec *batch.JobSpec, fldPath *field.Path, opts apivalidation.PodValidationOptions) field.ErrorList {
    	allErrs := validateJobSpec(spec, fldPath, opts)
    	if spec.Selector == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 51.2K bytes
    - Viewed (0)
Back to top