Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 110 for podAffinityTerm (0.29 sec)

  1. pkg/api/pod/util_test.go

    					PodAffinity: &api.PodAffinity{
    						RequiredDuringSchedulingIgnoredDuringExecution: []api.PodAffinityTerm{},
    					},
    				},
    			},
    			podSpec: &api.PodSpec{
    				Affinity: &api.Affinity{
    					PodAffinity: &api.PodAffinity{
    						RequiredDuringSchedulingIgnoredDuringExecution: []api.PodAffinityTerm{},
    					},
    				},
    			},
    			wantPodSpec: &api.PodSpec{
    				Affinity: &api.Affinity{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  2. pkg/api/pod/warnings_test.go

    								{
    									PodAffinityTerm: api.PodAffinityTerm{
    										LabelSelector: &metav1.LabelSelector{},
    									},
    								},
    								{
    									PodAffinityTerm: api.PodAffinityTerm{
    										LabelSelector: nil,
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    			expected: []string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/types.go

    	return terms
    }
    
    // returns a set of names according to the namespaces indicated in podAffinityTerm.
    // If namespaces is empty it considers the given pod's namespace.
    func getNamespacesFromPodAffinityTerm(pod *v1.Pod, podAffinityTerm *v1.PodAffinityTerm) sets.Set[string] {
    	names := sets.Set[string]{}
    	if len(podAffinityTerm.Namespaces) == 0 && podAffinityTerm.NamespaceSelector == nil {
    		names.Insert(pod.Namespace)
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  4. pkg/registry/core/pod/strategy_test.go

    									MismatchLabelKeys: []string{"city"},
    								},
    							},
    							PreferredDuringSchedulingIgnoredDuringExecution: []api.WeightedPodAffinityTerm{
    								{
    									PodAffinityTerm: api.PodAffinityTerm{
    										LabelSelector: &metav1.LabelSelector{
    											MatchLabels: map[string]string{
    												"region": "Asia",
    											},
    										},
    										MatchLabelKeys:    []string{"country"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  5. pkg/quota/v1/evaluator/core/pods_test.go

    					Affinity: &api.Affinity{
    						PodAffinity: &api.PodAffinity{
    							PreferredDuringSchedulingIgnoredDuringExecution: []api.WeightedPodAffinityTerm{
    								{PodAffinityTerm: api.PodAffinityTerm{LabelSelector: &metav1.LabelSelector{}, Namespaces: []string{"ns2"}, NamespaceSelector: &metav1.LabelSelector{}}},
    							},
    						},
    					},
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  6. pkg/api/pod/util.go

    	for i := range terms {
    		terms[i].PodAffinityTerm.MatchLabelKeys = nil
    		terms[i].PodAffinityTerm.MismatchLabelKeys = nil
    	}
    }
    
    // dropMatchLabelKeysFieldInPodAffnityTerm removes MatchLabelKeys and MismatchLabelKeys fields from PodAffinityTerm
    func dropMatchLabelKeysFieldInPodAffnityTerm(terms []api.PodAffinityTerm) {
    	for i := range terms {
    		terms[i].MatchLabelKeys = nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  7. pkg/api/pod/warnings.go

    	var warnings []string
    	for i, t := range terms {
    		// warn if labelSelector is empty which is no-match.
    		if t.PodAffinityTerm.LabelSelector == nil {
    			warnings = append(warnings, fmt.Sprintf("%s: a null labelSelector results in matching no pod", fieldPath.Index(i).Child("podAffinityTerm", "labelSelector")))
    		}
    	}
    	return warnings
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. pkg/scheduler/testing/wrappers.go

    		return p
    	}
    
    	if p.Spec.Affinity == nil {
    		p.Spec.Affinity = &v1.Affinity{}
    	}
    	if p.Spec.Affinity.PodAffinity == nil {
    		p.Spec.Affinity.PodAffinity = &v1.PodAffinity{}
    	}
    	term := v1.PodAffinityTerm{LabelSelector: labelSelector, TopologyKey: topologyKey}
    	switch kind {
    	case PodAffinityWithRequiredReq:
    		p.Spec.Affinity.PodAffinity.RequiredDuringSchedulingIgnoredDuringExecution = append(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  9. cluster/addons/dns/kube-dns/kube-dns.yaml.sed

            supplementalGroups: [ 65534 ]
            fsGroup: 65534
          affinity:
            podAntiAffinity:
              preferredDuringSchedulingIgnoredDuringExecution:
              - weight: 100
                podAffinityTerm:
                  labelSelector:
                    matchExpressions:
                      - key: k8s-app
                        operator: In
                        values: ["kube-dns"]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 03:19:02 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. cluster/addons/dns/kube-dns/kube-dns.yaml.in

            supplementalGroups: [ 65534 ]
            fsGroup: 65534
          affinity:
            podAntiAffinity:
              preferredDuringSchedulingIgnoredDuringExecution:
              - weight: 100
                podAffinityTerm:
                  labelSelector:
                    matchExpressions:
                      - key: k8s-app
                        operator: In
                        values: ["kube-dns"]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 03:19:02 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top