Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for jobTemplate (0.16 sec)

  1. pkg/apis/batch/v1beta1/zz_generated.defaults.go

    	return nil
    }
    
    func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
    	SetDefaults_CronJob(in)
    	v1.SetDefaults_PodSpec(&in.Spec.JobTemplate.Spec.Template.Spec)
    	for i := range in.Spec.JobTemplate.Spec.Template.Spec.Volumes {
    		a := &in.Spec.JobTemplate.Spec.Template.Spec.Volumes[i]
    		v1.SetDefaults_Volume(a)
    		if a.VolumeSource.HostPath != nil {
    			v1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 20:39:47 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. pkg/registry/batch/cronjob/strategy.go

    	newCronJob := obj.(*batch.CronJob)
    	oldCronJob := old.(*batch.CronJob)
    	if newCronJob.Generation != oldCronJob.Generation {
    		warnings = job.WarningsForJobSpec(ctx, field.NewPath("spec", "jobTemplate", "spec"), &newCronJob.Spec.JobTemplate.Spec, &oldCronJob.Spec.JobTemplate.Spec)
    	}
    	if strings.Contains(newCronJob.Spec.Schedule, "TZ") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 15:14:03 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  3. pkg/registry/batch/cronjob/strategy_test.go

    		},
    	}
    	validCronjobSpec = batch.CronJobSpec{
    		Schedule:          "5 5 * * ?",
    		ConcurrencyPolicy: batch.AllowConcurrent,
    		TimeZone:          ptr.To("Asia/Shanghai"),
    		JobTemplate: batch.JobTemplateSpec{
    			Spec: batch.JobSpec{
    				Template:       validPodTemplateSpec,
    				CompletionMode: completionModePtr(batch.IndexedCompletion),
    				Completions:    ptr.To[int32](10),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. pkg/apis/batch/validation/validation_test.go

    				UID:       types.UID("1a2b3c"),
    			},
    			Spec: batch.CronJobSpec{
    				Schedule: "* * * * ?",
    				JobTemplate: batch.JobTemplateSpec{
    					Spec: batch.JobSpec{
    						Template: validPodTemplateSpec,
    					},
    				},
    			},
    		},
    		"spec.jobTemplate.spec.parallelism:must be greater than or equal to 0": {
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      "mycronjob",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  5. pkg/controller/cronjob/cronjob_controllerv2_test.go

    				Spec: batchv1.CronJobSpec{
    					JobTemplate: batchv1.JobTemplateSpec{
    						ObjectMeta: metav1.ObjectMeta{
    							Labels:      map[string]string{"a": "b"},
    							Annotations: map[string]string{"x": "y"},
    						},
    						Spec: jobSpec(),
    					},
    				},
    			},
    			newCronJob: &batchv1.CronJob{
    				Spec: batchv1.CronJobSpec{
    					JobTemplate: batchv1.JobTemplateSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
  6. pkg/apis/batch/v1beta1/zz_generated.conversion.go

    	out.ConcurrencyPolicy = batch.ConcurrencyPolicy(in.ConcurrencyPolicy)
    	out.Suspend = (*bool)(unsafe.Pointer(in.Suspend))
    	if err := Convert_v1beta1_JobTemplateSpec_To_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, s); err != nil {
    		return err
    	}
    	out.SuccessfulJobsHistoryLimit = (*int32)(unsafe.Pointer(in.SuccessfulJobsHistoryLimit))
    	out.FailedJobsHistoryLimit = (*int32)(unsafe.Pointer(in.FailedJobsHistoryLimit))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 20:39:47 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/batch/v1beta1/zz_generated.deepcopy.go

    		*out = new(int64)
    		**out = **in
    	}
    	if in.Suspend != nil {
    		in, out := &in.Suspend, &out.Suspend
    		*out = new(bool)
    		**out = **in
    	}
    	in.JobTemplate.DeepCopyInto(&out.JobTemplate)
    	if in.SuccessfulJobsHistoryLimit != nil {
    		in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit
    		*out = new(int32)
    		**out = **in
    	}
    	if in.FailedJobsHistoryLimit != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 21:43:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/batch/v1beta1/types.go

    	// +optional
    	Suspend *bool `json:"suspend,omitempty" protobuf:"varint,4,opt,name=suspend"`
    
    	// Specifies the job that will be created when executing a CronJob.
    	JobTemplate JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"`
    
    	// The number of successful finished jobs to retain.
    	// This is a pointer to distinguish between explicit zero and not specified.
    	// Defaults to 3.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 11:58:57 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  9. pkg/controller/cronjob/utils.go

    // granularity of 1 minute for scheduling job.
    func getJobFromTemplate2(cj *batchv1.CronJob, scheduledTime time.Time) (*batchv1.Job, error) {
    	labels := copyLabels(&cj.Spec.JobTemplate)
    	annotations := copyAnnotations(&cj.Spec.JobTemplate)
    	// We want job names for a given nominal start time to have a deterministic name to avoid the same job being created twice
    	name := getJobName(cj, scheduledTime)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/batch/v1beta1/generated.pb.go

    		`ConcurrencyPolicy:` + fmt.Sprintf("%v", this.ConcurrencyPolicy) + `,`,
    		`Suspend:` + valueToStringGenerated(this.Suspend) + `,`,
    		`JobTemplate:` + strings.Replace(strings.Replace(this.JobTemplate.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
    		`SuccessfulJobsHistoryLimit:` + valueToStringGenerated(this.SuccessfulJobsHistoryLimit) + `,`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 40.2K bytes
    - Viewed (0)
Back to top