Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 139 for labelSelectors (0.18 sec)

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

    )
    
    // PodAffinityTermApplyConfiguration represents an declarative configuration of the PodAffinityTerm type for use
    // with apply.
    type PodAffinityTermApplyConfiguration struct {
    	LabelSelector     *v1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"`
    	Namespaces        []string                            `json:"namespaces,omitempty"`
    	TopologyKey       *string                             `json:"topologyKey,omitempty"`
    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/util/labels/labels_test.go

    			labelKey:   "foo4",
    			labelValue: "12",
    			want: map[string]string{
    				"foo4": "12",
    			},
    		},
    	}
    
    	for _, tc := range cases {
    		ls_in := metav1.LabelSelector{MatchLabels: tc.labels}
    		ls_out := metav1.LabelSelector{MatchLabels: tc.want}
    
    		got := CloneSelectorAndAddLabel(&ls_in, tc.labelKey, tc.labelValue)
    		if !reflect.DeepEqual(got, &ls_out) {
    			t.Errorf("got %v, want %v", got, tc.want)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 17:34:12 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types_test.go

    func TestMarshalJSONWithOmit(t *testing.T) {
    	cases := []struct {
    		input  LabelSelector
    		result string
    	}{
    		{LabelSelector{}, `{}`},
    		{LabelSelector{MatchExpressions: []LabelSelectorRequirement{}}, `{}`},
    		{LabelSelector{MatchExpressions: []LabelSelectorRequirement{{}}}, `{"matchExpressions":[{"key":"","operator":""}]}`},
    	}
    
    	for i, c := range cases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 16:49:23 UTC 2021
    - 4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/zz_generated.conversion.go

    }
    
    func autoConvert_internalversion_ListOptions_To_v1_ListOptions(in *ListOptions, out *v1.ListOptions, s conversion.Scope) error {
    	if err := v1.Convert_labels_Selector_To_string(&in.LabelSelector, &out.LabelSelector, s); err != nil {
    		return err
    	}
    	if err := v1.Convert_fields_Selector_To_string(&in.FieldSelector, &out.FieldSelector, s); err != nil {
    		return err
    	}
    	out.Watch = in.Watch
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. pkg/config/schema/codegen/templates/clients.go.tmpl

    					options.FieldSelector = opts.FieldSelector
    					options.LabelSelector = opts.LabelSelector
    					return l(options)
    				},
    				WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
    					options.FieldSelector = opts.FieldSelector
    					options.LabelSelector = opts.LabelSelector
    					return w(options)
    				},
    			},
    			gvrToObject(g),
    			0,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. pkg/registry/admissionregistration/validatingwebhookconfiguration/storage/storage_test.go

    					Port:      443,
    				},
    			},
    			FailurePolicy:           &ignore,
    			MatchPolicy:             &exact,
    			TimeoutSeconds:          &thirty,
    			NamespaceSelector:       &metav1.LabelSelector{},
    			ObjectSelector:          &metav1.LabelSelector{},
    			SideEffects:             &none,
    			AdmissionReviewVersions: []string{"v1beta1"},
    		}},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 13 15:10:55 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. pkg/registry/networking/networkpolicy/strategy_test.go

    		Spec: networking.NetworkPolicySpec{
    			PodSelector: metav1.LabelSelector{
    				MatchLabels: map[string]string{"a": "b"},
    			},
    		},
    	}
    	egress := networking.NetworkPolicyEgressRule{
    		To: []networking.NetworkPolicyPeer{
    			{
    				NamespaceSelector: &metav1.LabelSelector{
    					MatchLabels: map[string]string{"c": "d"},
    				},
    			},
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/zz_generated.deepcopy.go

    func (in *ListOptions) DeepCopyInto(out *ListOptions) {
    	*out = *in
    	out.TypeMeta = in.TypeMeta
    	if in.LabelSelector != nil {
    		out.LabelSelector = in.LabelSelector.DeepCopySelector()
    	}
    	if in.FieldSelector != nil {
    		out.FieldSelector = in.FieldSelector.DeepCopySelector()
    	}
    	if in.TimeoutSeconds != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. manifests/charts/gateways/istio-ingress/templates/_affinity.tpl

        {{- end }}
    {{- end }}
    {{- end }}
    
    {{- define "podAntiAffinityRequiredDuringScheduling" }}
        {{- range $index, $item := .podAntiAffinityLabelSelector }}
        - labelSelector:
            matchExpressions:
            - key: {{ $item.key }}
              operator: {{ $item.operator }}
              {{- if $item.values }}
              values:
              {{- $vals := split "," $item.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. istioctl/pkg/tag/util.go

    	webhooks, err := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(ctx, metav1.ListOptions{
    		LabelSelector: label.IoIstioRev.Name,
    	})
    	if err != nil {
    		return nil, err
    	}
    	return webhooks.Items, nil
    }
    
    // GetWebhooksWithTag returns webhooks tagged with istio.io/tag=<tag>.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 16 17:43:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top