Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for jobTemplate (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. pkg/controller/cronjob/utils_test.go

    			Name:      "mycronjob",
    			Namespace: "snazzycats",
    			UID:       types.UID("1a2b3c"),
    		},
    		Spec: batchv1.CronJobSpec{
    			Schedule:          "* * * * ?",
    			ConcurrencyPolicy: batchv1.AllowConcurrent,
    			JobTemplate: batchv1.JobTemplateSpec{
    				ObjectMeta: metav1.ObjectMeta{
    					CreationTimestamp: metav1.Time{Time: scheduledTime},
    					Labels:            map[string]string{"a": "b"},
    				},
    				Spec: batchv1.JobSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/batch/v1/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. Value must be non-negative integer.
    	// Defaults to 3.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 40.6K bytes
    - Viewed (0)
  6. pkg/kube/inject/inject.go

    		}
    		return result, nil
    	}
    
    	// CronJobs have JobTemplates in them, instead of Templates, so we
    	// special case them.
    	switch v := out.(type) {
    	case *batch.CronJob:
    		job := v
    		typeMeta = job.TypeMeta
    		metadata = &job.Spec.JobTemplate.ObjectMeta
    		deploymentMetadata = config.NamespacedName(job)
    		podSpec = &job.Spec.JobTemplate.Spec.Template.Spec
    	case *corev1.Pod:
    		pod := v
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/HEAD/batch.v1beta1.CronJob.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/HEAD/batch.v1.CronJob.yaml

        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    spec:
      concurrencyPolicy: concurrencyPolicyValue
      failedJobsHistoryLimit: 7
      jobTemplate:
        metadata:
          annotations:
            annotationsKey: annotationsValue
          creationTimestamp: "2008-01-01T01:01:01Z"
          deletionGracePeriodSeconds: 10
          deletionTimestamp: "2009-01-01T01:01:01Z"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/v1.30.0/batch.v1.CronJob.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/HEAD/batch.v1.CronJob.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 63.5K bytes
    - Viewed (0)
Back to top