Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 165 for podAffinityTerm (0.23 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podaffinityterm.go

    	MismatchLabelKeys []string                            `json:"mismatchLabelKeys,omitempty"`
    }
    
    // PodAffinityTermApplyConfiguration constructs an declarative configuration of the PodAffinityTerm type for use with
    // apply.
    func PodAffinityTerm() *PodAffinityTermApplyConfiguration {
    	return &PodAffinityTermApplyConfiguration{}
    }
    
    // WithLabelSelector sets the LabelSelector field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 11:28:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. 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)
  3. plugin/pkg/admission/antiaffinity/admission_test.go

    		{
    			affinity: &api.Affinity{
    				PodAntiAffinity: &api.PodAntiAffinity{
    					PreferredDuringSchedulingIgnoredDuringExecution: []api.WeightedPodAffinityTerm{
    						{
    							Weight: 5,
    							PodAffinityTerm: api.PodAffinityTerm{
    								LabelSelector: &metav1.LabelSelector{
    									MatchExpressions: []metav1.LabelSelectorRequirement{
    										{
    											Key:      "security",
    											Operator: metav1.LabelSelectorOpIn,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 7.9K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/interpodaffinity/scoring_test.go

    	stayWithS1InRegion := &v1.Affinity{
    		PodAffinity: &v1.PodAffinity{
    			PreferredDuringSchedulingIgnoredDuringExecution: []v1.WeightedPodAffinityTerm{
    				{
    					Weight: 5,
    					PodAffinityTerm: v1.PodAffinityTerm{
    						LabelSelector: &metav1.LabelSelector{
    							MatchExpressions: []metav1.LabelSelectorRequirement{
    								{
    									Key:      "security",
    									Operator: metav1.LabelSelectorOpIn,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 44.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. manifests/charts/gateways/istio-ingress/templates/_affinity.tpl

          {{- end }}
          {{- end }}
        {{- end }}
    {{- end }}
    
    {{- define "podAntiAffinityPreferredDuringScheduling" }}
        {{- range $index, $item := .podAntiAffinityTermLabelSelector }}
        - podAffinityTerm:
            labelSelector:
              matchExpressions:
              - key: {{ $item.key }}
                operator: {{ $item.operator }}
                {{- if $item.values }}
                values:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 10 21:23:08 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. 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)
Back to top