Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 96 for priority1 (0.15 sec)

  1. pkg/kubelet/eviction/helpers.go

    	// the last cmp func is the final decider
    	return ms.cmp[k](p1, p2) < 0
    }
    
    // priority compares pods by Priority, if priority is enabled.
    func priority(p1, p2 *v1.Pod) int {
    	priority1 := corev1helpers.PodPriority(p1)
    	priority2 := corev1helpers.PodPriority(p2)
    	if priority1 == priority2 {
    		return 0
    	}
    	if priority1 > priority2 {
    		return 1
    	}
    	return -1
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    	go func() {
    		controllerErr = controller.Run(stopCh)
    		controllerCompletedCh <- controllerErr
    	}()
    
    	// make sure that apf controller syncs the priority level configuration object we are using in this test.
    	// read the metrics and ensure the concurrency limit for our priority level is set to the expected value.
    	pollErr := wait.PollImmediate(100*time.Millisecond, 5*time.Second, func() (done bool, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  3. pilot/pkg/model/push_context.go

    				}
    			}
    		}
    	}
    
    	// sort slices by priority
    	for i, slice := range matchedPlugins {
    		sort.SliceStable(slice, func(i, j int) bool {
    			iPriority := int32(math.MinInt32)
    			if prio := slice[i].Priority; prio != nil {
    				iPriority = prio.Value
    			}
    			jPriority := int32(math.MinInt32)
    			if prio := slice[j].Priority; prio != nil {
    				jPriority = prio.Value
    			}
    			return iPriority > jPriority
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			testPods: []*v1.Pod{
    				st.MakePod().Name("p").UID("p").Priority(highPriority).Req(largeRes).Obj(),
    			},
    			initPods: []*v1.Pod{
    				st.MakePod().Name("p1.1").UID("p1.1").Node("node1").Priority(midPriority).Req(smallRes).Obj(),
    				st.MakePod().Name("p1.2").UID("p1.2").Node("node1").Priority(lowPriority).Req(smallRes).Obj(),
    				st.MakePod().Name("p1.3").UID("p1.3").Node("node1").Priority(midPriority).Req(mediumRes).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. pilot/pkg/model/push_context_test.go

    			},
    		},
    	}
    
    	expectedns := []string{
    		"testns/super-high-priority", "testns/high-priority", "testns/default-priority", "testns/a-medium-priority",
    		"testns/b-medium-priority", "testns/b-low-priority", "testns/a-low-priority",
    	}
    
    	expectedns1 := []string{"testns-1/default-priority", "testns-1/a-medium-priority", "testns-1/b-medium-priority"}
    
    	for _, cfg := range envoyFilters {
    		_, _ = store.Create(cfg)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  6. pkg/apis/flowcontrol/validation/validation_test.go

    			field.NotSupported(field.NewPath("spec").Child("rules").Index(0).Child("resourceRules").Index(0).Child("verbs"), []string{"feed"}, supportedVerbs.List()),
    		},
    	}, {
    		name: "flow-schema w/ invalid priority level configuration name should fail",
    		flowSchema: &flowcontrol.FlowSchema{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "system-foo",
    			},
    			Spec: flowcontrol.FlowSchemaSpec{
    				MatchingPrecedence: 50,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  7. common/scripts/metallb-native.yaml

                      of priority in case of multiple matches. A pool with no priority
                      set will be used only if the pools with priority can't be used.
                      If multiple matching IPAddressPools are available it will check
                      for the availability of IPs sorting the matching IPAddressPools
                      by priority, starting from the highest to the lowest. If multiple
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 23:56:31 UTC 2024
    - 63.9K bytes
    - Viewed (0)
  8. plugin/pkg/admission/resourcequota/admission_test.go

    			description: "Covering quota exists for configured limited scope PriorityClassNameExists.",
    			testPod:     validPodWithPriority("allowed-pod", 1, getResourceRequirements(getResourceList("3", "2Gi"), getResourceList("", "")), "fake-priority"),
    			quota: &corev1.ResourceQuota{
    				ObjectMeta: metav1.ObjectMeta{Name: "quota", Namespace: "test", ResourceVersion: "124"},
    				Spec: corev1.ResourceQuotaSpec{
    					ScopeSelector: &corev1.ScopeSelector{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  9. pkg/scheduler/internal/queue/scheduling_queue.go

    				return queueImmediately
    			}
    
    			// interprets Queue from the unschedulable plugin as queueAfterBackoff.
    
    			if pInfo.PendingPlugins.Len() == 0 {
    				// We can return immediately because no Pending plugins, which only can make queueImmediately, registered in this Pod,
    				// and queueAfterBackoff is the second highest priority.
    				return queueAfterBackoff
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  10. fastapi/param_functions.py

                is a Python reserved keyword or similar.
                """
            ),
        ] = None,
        alias_priority: Annotated[
            Union[int, None],
            Doc(
                """
                Priority of the alias. This affects whether an alias generator is used.
                """
            ),
        ] = _Unset,
        # TODO: update when deprecating Pydantic v1, import these types
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 62.5K bytes
    - Viewed (0)
Back to top