Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for ttlSecondsAfterFinished (0.28 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/batch/v1/jobspec.go

    	Template                *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
    	TTLSecondsAfterFinished *int32                                    `json:"ttlSecondsAfterFinished,omitempty"`
    	CompletionMode          *batchv1.CompletionMode                   `json:"completionMode,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. pkg/controller/ttlafterfinished/ttlafterfinished_controller.go

    	"k8s.io/utils/clock"
    )
    
    // Controller watches for changes of Jobs API objects. Triggered by Job creation
    // and updates, it enqueues Jobs that have non-nil `.spec.ttlSecondsAfterFinished`
    // to the `queue`. The Controller has workers who consume `queue`, check whether
    // the Job TTL has expired or not; if the Job TTL hasn't expired, it will add the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 23:59:28 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. pkg/apis/batch/zz_generated.deepcopy.go

    		in, out := &in.ManualSelector, &out.ManualSelector
    		*out = new(bool)
    		**out = **in
    	}
    	in.Template.DeepCopyInto(&out.Template)
    	if in.TTLSecondsAfterFinished != nil {
    		in, out := &in.TTLSecondsAfterFinished, &out.TTLSecondsAfterFinished
    		*out = new(int32)
    		**out = **in
    	}
    	if in.CompletionMode != nil {
    		in, out := &in.CompletionMode, &out.CompletionMode
    		*out = new(CompletionMode)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/batch/v1/zz_generated.deepcopy.go

    		in, out := &in.ManualSelector, &out.ManualSelector
    		*out = new(bool)
    		**out = **in
    	}
    	in.Template.DeepCopyInto(&out.Template)
    	if in.TTLSecondsAfterFinished != nil {
    		in, out := &in.TTLSecondsAfterFinished, &out.TTLSecondsAfterFinished
    		*out = new(int32)
    		**out = **in
    	}
    	if in.CompletionMode != nil {
    		in, out := &in.CompletionMode, &out.CompletionMode
    		*out = new(CompletionMode)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. pkg/apis/batch/v1/zz_generated.conversion.go

    	if err := apiscorev1.Convert_v1_PodTemplateSpec_To_core_PodTemplateSpec(&in.Template, &out.Template, s); err != nil {
    		return err
    	}
    	out.TTLSecondsAfterFinished = (*int32)(unsafe.Pointer(in.TTLSecondsAfterFinished))
    	out.CompletionMode = (*batch.CompletionMode)(unsafe.Pointer(in.CompletionMode))
    	out.Suspend = (*bool)(unsafe.Pointer(in.Suspend))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  6. pkg/controller/ttlafterfinished/ttlafterfinished_controller_test.go

    		c := batchv1.JobCondition{Type: batchv1.JobFailed, Status: corev1.ConditionTrue, LastTransitionTime: failedTime}
    		j.Status.Conditions = append(j.Status.Conditions, c)
    	}
    
    	if ttl != nil {
    		j.Spec.TTLSecondsAfterFinished = ttl
    	}
    
    	return j
    }
    
    func TestTimeLeft(t *testing.T) {
    	now := metav1.Now()
    
    	testCases := []struct {
    		name             string
    		completionTime   metav1.Time
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 18 18:46:26 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/batch/v1/types.go

    	// the Job won't be automatically deleted. If this field is set to zero,
    	// the Job becomes eligible to be deleted immediately after it finishes.
    	// +optional
    	TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty" protobuf:"varint,8,opt,name=ttlSecondsAfterFinished"`
    
    	// completionMode specifies how Pod completions are tracked. It can be
    	// `NonIndexed` (default) or `Indexed`.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 40.6K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/batch/v1/generated.proto

      optional k8s.io.api.core.v1.PodTemplateSpec template = 6;
    
      // ttlSecondsAfterFinished limits the lifetime of a Job that has finished
      // execution (either Complete or Failed). If this field is set,
      // ttlSecondsAfterFinished after the Job finishes, it is eligible to be
      // automatically deleted. When the Job is being deleted, its lifecycle
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/upgrade/health.go

    	job := &batchv1.Job{
    		ObjectMeta: metav1.ObjectMeta{
    			GenerateName: prefix + "-",
    			Namespace:    ns,
    		},
    		Spec: batchv1.JobSpec{
    			BackoffLimit:            ptr.To[int32](0),
    			TTLSecondsAfterFinished: ptr.To[int32](int32(timeout.Seconds()) + 5), // Make sure it's more than 'timeout'.
    			Template: v1.PodTemplateSpec{
    				Spec: v1.PodSpec{
    					RestartPolicy: v1.RestartPolicyNever,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 09:18:02 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/batch/v1/types_swagger_doc_generated.go

    	"ttlSecondsAfterFinished": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored....
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 12:01:28 UTC 2024
    - 27.5K bytes
    - Viewed (0)
Back to top