Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for manualSelector (0.21 sec)

  1. pkg/registry/batch/job/strategy_test.go

    				Spec: batch.JobSpec{
    					Selector:       validSelector,
    					ManualSelector: ptr.To(false),
    					Template:       validPodTemplateSpec,
    				},
    			},
    			wantJob: batch.Job{
    				ObjectMeta: getValidObjectMeta(1),
    				Spec: batch.JobSpec{
    					Selector:       validSelector,
    					ManualSelector: ptr.To(false),
    					Template:       expectedPodTemplateSpec,
    				},
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  2. pkg/apis/batch/v1/defaults_test.go

    				t.Errorf("Unexpected PodReplacementPolicy (-want,+got):\n%s", diff)
    			}
    			if diff := cmp.Diff(expected.Spec.ManualSelector, actual.Spec.ManualSelector); diff != "" {
    				t.Errorf("Unexpected ManualSelector (-want,+got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func validateDefaultInt32(t *testing.T, field string, actual *int32, expected *int32) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/client-go/applyconfigurations/batch/v1/jobspec.go

    }
    
    // WithManualSelector sets the ManualSelector field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the ManualSelector field is set to the value of the last call.
    func (b *JobSpecApplyConfiguration) WithManualSelector(value bool) *JobSpecApplyConfiguration {
    	b.ManualSelector = &value
    	return b
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. pkg/apis/batch/v1/defaults.go

    			} else {
    				obj.Spec.PodReplacementPolicy = podReplacementPolicyPtr(batchv1.TerminatingOrFailed)
    			}
    		}
    	}
    	if obj.Spec.ManualSelector == nil {
    		obj.Spec.ManualSelector = utilpointer.Bool(false)
    	}
    }
    
    func SetDefaults_CronJob(obj *batchv1.CronJob) {
    	if obj.Spec.ConcurrencyPolicy == "" {
    		obj.Spec.ConcurrencyPolicy = batchv1.AllowConcurrent
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 11 20:51:40 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. pkg/registry/batch/job/storage/storage_test.go

    			Namespace: "default",
    		},
    		Spec: batch.JobSpec{
    			Completions: &completions,
    			Parallelism: &parallelism,
    			Selector: &metav1.LabelSelector{
    				MatchLabels: map[string]string{"a": "b"},
    			},
    			ManualSelector: newBool(true),
    			Template: api.PodTemplateSpec{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{"a": "b"},
    				},
    				Spec: api.PodSpec{
    					Containers: []api.Container{
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. pkg/apis/batch/fuzzer/fuzzer.go

    			parallelism := int32(c.Rand.Int31())
    			backoffLimit := int32(c.Rand.Int31())
    			j.Completions = &completions
    			j.Parallelism = &parallelism
    			j.BackoffLimit = &backoffLimit
    			j.ManualSelector = pointer.Bool(c.RandBool())
    			mode := batch.NonIndexedCompletion
    			if c.RandBool() {
    				mode = batch.IndexedCompletion
    				j.BackoffLimitPerIndex = pointer.Int32(c.Rand.Int31())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 17:25:15 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/batch/v1/zz_generated.deepcopy.go

    		**out = **in
    	}
    	if in.Selector != nil {
    		in, out := &in.Selector, &out.Selector
    		*out = new(metav1.LabelSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	if in.ManualSelector != nil {
    		in, out := &in.ManualSelector, &out.ManualSelector
    		*out = new(bool)
    		**out = **in
    	}
    	in.Template.DeepCopyInto(&out.Template)
    	if in.TTLSecondsAfterFinished != 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)
  8. common-protos/k8s.io/api/batch/v1/generated.proto

      // +optional
      optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;
    
      // manualSelector controls generation of pod labels and pod selectors.
      // Leave `manualSelector` unset unless you are certain what you are doing.
      // When false or unset, the system pick labels unique to this job
      // and appends those labels to the pod template.  When true,
    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. pkg/apis/batch/zz_generated.deepcopy.go

    		**out = **in
    	}
    	if in.Selector != nil {
    		in, out := &in.Selector, &out.Selector
    		*out = new(v1.LabelSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	if in.ManualSelector != nil {
    		in, out := &in.ManualSelector, &out.ManualSelector
    		*out = new(bool)
    		**out = **in
    	}
    	in.Template.DeepCopyInto(&out.Template)
    	if in.TTLSecondsAfterFinished != 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)
  10. pkg/apis/batch/v1/zz_generated.conversion.go

    	out.MaxFailedIndexes = (*int32)(unsafe.Pointer(in.MaxFailedIndexes))
    	out.Selector = (*metav1.LabelSelector)(unsafe.Pointer(in.Selector))
    	out.ManualSelector = (*bool)(unsafe.Pointer(in.ManualSelector))
    	if err := apiscorev1.Convert_v1_PodTemplateSpec_To_core_PodTemplateSpec(&in.Template, &out.Template, s); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 36.6K bytes
    - Viewed (0)
Back to top