Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for jobSpec (0.34 sec)

  1. pkg/apis/batch/v1/zz_generated.conversion.go

    	}); err != nil {
    		return err
    	}
    	if err := s.AddConversionFunc((*batch.JobSpec)(nil), (*v1.JobSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_batch_JobSpec_To_v1_JobSpec(a.(*batch.JobSpec), b.(*v1.JobSpec), scope)
    	}); err != nil {
    		return err
    	}
    	if err := s.AddConversionFunc((*v1.JobSpec)(nil), (*batch.JobSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  2. pkg/apis/batch/zz_generated.deepcopy.go

    		*out = new(string)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
    func (in *JobSpec) DeepCopy() *JobSpec {
    	if in == nil {
    		return nil
    	}
    	out := new(JobSpec)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. 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)
  4. pkg/registry/batch/job/storage/storage_test.go

    }
    
    func validNewJob() *batch.Job {
    	completions := int32(1)
    	parallelism := int32(1)
    	return &batch.Job{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: "default",
    		},
    		Spec: batch.JobSpec{
    			Completions: &completions,
    			Parallelism: &parallelism,
    			Selector: &metav1.LabelSelector{
    				MatchLabels: map[string]string{"a": "b"},
    			},
    			ManualSelector: newBool(true),
    			Template: api.PodTemplateSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/batch/v1/zz_generated.deepcopy.go

    		*out = new(string)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
    func (in *JobSpec) DeepCopy() *JobSpec {
    	if in == nil {
    		return nil
    	}
    	out := new(JobSpec)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. pkg/controller/job/job_controller_test.go

    	j := &batch.Job{
    		TypeMeta: metav1.TypeMeta{Kind: "Job"},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      name,
    			UID:       uuid.NewUUID(),
    			Namespace: metav1.NamespaceDefault,
    		},
    		Spec: batch.JobSpec{
    			Selector: &metav1.LabelSelector{
    				MatchLabels: map[string]string{"foo": "bar"},
    			},
    			Template: v1.PodTemplateSpec{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{
    						"foo": "bar",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/api/batch/v1/generated.pb.go

    }
    
    var xxx_messageInfo_JobList proto.InternalMessageInfo
    
    func (m *JobSpec) Reset()      { *m = JobSpec{} }
    func (*JobSpec) ProtoMessage() {}
    func (*JobSpec) Descriptor() ([]byte, []int) {
    	return fileDescriptor_79228dc2c4001a22, []int{7}
    }
    func (m *JobSpec) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *JobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 133K bytes
    - Viewed (0)
  9. pkg/registry/batch/cronjob/storage/storage_test.go

    			Namespace: metav1.NamespaceDefault,
    		},
    		Spec: batch.CronJobSpec{
    			Schedule:          "* * * * ?",
    			ConcurrencyPolicy: batch.AllowConcurrent,
    			JobTemplate: batch.JobTemplateSpec{
    				Spec: batch.JobSpec{
    					Template: api.PodTemplateSpec{
    						Spec: api.PodSpec{
    							RestartPolicy: api.RestartPolicyOnFailure,
    							DNSPolicy:     api.DNSClusterFirst,
    							Containers: []api.Container{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 4.4K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/batch/v1/generated.proto

      // +optional
      optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
    
      // items is the list of Jobs.
      repeated Job items = 2;
    }
    
    // JobSpec describes how the job execution will look like.
    message JobSpec {
      // Specifies the maximum desired number of pods the job should
      // run at any given time. The actual number of pods running in steady state will
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top