Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for PreemptLowerPriority (0.27 sec)

  1. pkg/apis/scheduling/fuzzer/fuzzer.go

    	return []interface{}{
    		func(s *scheduling.PriorityClass, c fuzz.Continue) {
    			c.FuzzNoCustom(s)
    			if s.PreemptionPolicy == nil {
    				preemptLowerPriority := core.PreemptLowerPriority
    				s.PreemptionPolicy = &preemptLowerPriority
    			}
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. pkg/apis/scheduling/validation/validation_test.go

    		}
    	}
    }
    
    func TestValidatePriorityClassUpdate(t *testing.T) {
    	preemptLowerPriority := core.PreemptLowerPriority
    	preemptNever := core.PreemptNever
    
    	old := scheduling.PriorityClass{
    		ObjectMeta:       metav1.ObjectMeta{Name: "tier1", Namespace: "", ResourceVersion: "1"},
    		Value:            100,
    		PreemptionPolicy: &preemptLowerPriority,
    	}
    	successCases := map[string]scheduling.PriorityClass{
    		"no change": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:30:47 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  3. pkg/apis/scheduling/v1/defaults.go

    // in extensions.
    func SetDefaults_PriorityClass(obj *v1.PriorityClass) {
    	if obj.PreemptionPolicy == nil {
    		preemptLowerPriority := apiv1.PreemptLowerPriority
    		obj.PreemptionPolicy = &preemptLowerPriority
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  4. pkg/apis/scheduling/v1alpha1/defaults.go

    // in extensions.
    func SetDefaults_PriorityClass(obj *v1alpha1.PriorityClass) {
    	if obj.PreemptionPolicy == nil {
    		preemptLowerPriority := apiv1.PreemptLowerPriority
    		obj.PreemptionPolicy = &preemptLowerPriority
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  5. pkg/apis/scheduling/v1beta1/defaults.go

    // in extensions.
    func SetDefaults_PriorityClass(obj *v1beta1.PriorityClass) {
    	if obj.PreemptionPolicy == nil {
    		preemptLowerPriority := apiv1.PreemptLowerPriority
    		obj.PreemptionPolicy = &preemptLowerPriority
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. pkg/apis/scheduling/v1beta1/defaults_test.go

    	output := roundTrip(t, runtime.Object(priorityClass)).(*v1beta1.PriorityClass)
    	if output.PreemptionPolicy == nil || *output.PreemptionPolicy != apiv1.PreemptLowerPriority {
    		t.Errorf("Expected PriorityClass.Preempting value: %+v\ngot: %+v\n", apiv1.PreemptLowerPriority, output.PreemptionPolicy)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/scheduling/v1beta1/types_swagger_doc_generated.go

    	"preemptionPolicy": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.",
    }
    
    func (PriorityClass) SwaggerDoc() map[string]string {
    	return map_PriorityClass
    }
    
    var map_PriorityClassList = map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 22 00:51:25 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/scheduling/v1alpha1/generated.proto

      // when this priority class should be used.
      // +optional
      optional string description = 4;
    
      // preemptionPolicy is the Policy for preempting pods with lower priority.
      // One of Never, PreemptLowerPriority.
      // Defaults to PreemptLowerPriority if unset.
      // +optional
      optional string preemptionPolicy = 5;
    }
    
    // PriorityClassList is a collection of priority classes.
    message PriorityClassList {
      // Standard list metadata
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/scheduling/v1/types.go

    	// +optional
    	Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"`
    
    	// preemptionPolicy is the Policy for preempting pods with lower priority.
    	// One of Never, PreemptLowerPriority.
    	// Defaults to PreemptLowerPriority if unset.
    	// +optional
    	PreemptionPolicy *apiv1.PreemptionPolicy `json:"preemptionPolicy,omitempty" protobuf:"bytes,5,opt,name=preemptionPolicy"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. pkg/apis/scheduling/v1/defaults_test.go

    	output := roundTrip(t, runtime.Object(priorityClass)).(*v1.PriorityClass)
    	if output.PreemptionPolicy == nil || *output.PreemptionPolicy != apiv1.PreemptLowerPriority {
    		t.Errorf("Expected PriorityClass.PreemptionPolicy value: %+v\ngot: %+v\n", apiv1.PreemptLowerPriority, output.PreemptionPolicy)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top