Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for TopologyKey (0.13 sec)

  1. pkg/scheduler/framework/plugins/podtopologyspread/filtering.go

    		}
    
    		if pl.enableNodeInclusionPolicyInPodTopologySpread &&
    			!constraint.matchNodeInclusionPolicies(preemptorPod, node, requiredSchedulingTerm) {
    			continue
    		}
    
    		k, v := constraint.TopologyKey, node.Labels[constraint.TopologyKey]
    		pair := topologyPair{key: k, value: v}
    		s.TpPairToMatchNum[pair] += delta
    		s.TpKeyToCriticalPaths[k].update(v, s.TpPairToMatchNum[pair])
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/wrappers.go

    func (p *PodWrapper) PodAffinityExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper {
    	labelSelector := MakeLabelSelector().Exists(labelKey).Obj()
    	p.PodAffinity(topologyKey, labelSelector, kind)
    	return p
    }
    
    // PodAntiAffinityExists creates a PodAntiAffinity with the operator "Exists"
    // and injects into the inner pod.
    func (p *PodWrapper) PodAntiAffinityExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/common.go

    				}
    				if len(matchLabels) > 0 {
    					selector = mergeLabelSetWithSelector(matchLabels, selector)
    				}
    			}
    
    			tsc := topologySpreadConstraint{
    				MaxSkew:            c.MaxSkew,
    				TopologyKey:        c.TopologyKey,
    				Selector:           selector,
    				MinDomains:         ptr.Deref(c.MinDomains, 1),   // If MinDomains is nil, we treat MinDomains as 1.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    			args: &config.PodTopologySpreadArgs{
    				DefaultConstraints: []v1.TopologySpreadConstraint{
    					{
    						MaxSkew:           1,
    						TopologyKey:       "node",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    					},
    					{
    						MaxSkew:           2,
    						TopologyKey:       "zone",
    						WhenUnsatisfiable: v1.ScheduleAnyway,
    					},
    				},
    				DefaultingType: config.ListDefaulting,
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    			pod:  st.MakePod().Name("p").Label("foo", "bar").Label("baz", "kar").Obj(),
    			defaultConstraints: []v1.TopologySpreadConstraint{
    				{MaxSkew: 3, TopologyKey: "node", WhenUnsatisfiable: v1.DoNotSchedule},
    				{MaxSkew: 2, TopologyKey: "node", WhenUnsatisfiable: v1.ScheduleAnyway},
    				{MaxSkew: 5, TopologyKey: "rack", WhenUnsatisfiable: v1.DoNotSchedule},
    			},
    			objs: []runtime.Object{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go

    			pod:          st.MakePod().Name("p").PodAffinityIn("service", "zone", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(),
    			newNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Obj(),
    			expectedHint: framework.Queue,
    		},
    		{
    			name:         "add a new node with matched pod anti-affinity topologyKey",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. pkg/api/pod/warnings_test.go

    						{
    							TopologyKey:   `foo`,
    							LabelSelector: &metav1.LabelSelector{},
    						},
    						{
    							TopologyKey:   `beta.kubernetes.io/arch`,
    							LabelSelector: &metav1.LabelSelector{},
    						},
    						{
    							TopologyKey:   `beta.kubernetes.io/os`,
    							LabelSelector: &metav1.LabelSelector{},
    						},
    						{
    							TopologyKey:   `failure-domain.beta.kubernetes.io/region`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/interpodaffinity/plugin.go

    		if _, ok := modifiedNode.Labels[term.TopologyKey]; ok {
    			logger.V(5).Info("a node with matched pod anti-affinity topologyKey was added/updated and it may make pod schedulable",
    				"pod", klog.KObj(pod), "node", klog.KObj(modifiedNode))
    			return framework.Queue, err
    		}
    	}
    	logger.V(5).Info("a node is added/updated but doesn't have any topologyKey which matches pod affinity/anti-affinity",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/v1.30.0/discovery.k8s.io.v1beta1.EndpointSlice.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.30.0/discovery.k8s.io.v1beta1.EndpointSlice.yaml

        apiVersion: apiVersionValue
        fieldPath: fieldPathValue
        kind: kindValue
        name: nameValue
        namespace: namespaceValue
        resourceVersion: resourceVersionValue
        uid: uidValue
      topology:
        topologyKey: topologyValue
    kind: EndpointSlice
    metadata:
      annotations:
        annotationsKey: annotationsValue
      creationTimestamp: "2008-01-01T01:01:01Z"
      deletionGracePeriodSeconds: 10
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top