Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for labelSelector (0.2 sec)

  1. pkg/registry/core/pod/storage/eviction_test.go

    			pdbs: []runtime.Object{&policyv1.PodDisruptionBudget{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "default"},
    				Spec:       policyv1.PodDisruptionBudgetSpec{Selector: &metav1.LabelSelector{MatchLabels: map[string]string{"a": "true"}}},
    				Status:     policyv1.PodDisruptionBudgetStatus{DisruptionsAllowed: 0},
    			}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/policies.go

    			return nil
    		}
    		meshCfg := krt.FetchOne(ctx, MeshConfig.AsCollection())
    		// If there are any PeerAuthentications in our cache, send our static STRICT policy
    		return &model.WorkloadAuthorization{
    			LabelSelector: model.LabelSelector{},
    			Authorization: &security.Authorization{
    				Name:      staticStrictPolicyName,
    				Namespace: meshCfg.GetRootNamespace(),
    				Scope:     security.Scope_WORKLOAD_SELECTOR,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/ambient/workloads_test.go

    			},
    		},
    		{
    			name: "pod with authz",
    			inputs: []any{
    				model.WorkloadAuthorization{
    					LabelSelector: model.NewSelector(map[string]string{"app": "foo"}),
    					Authorization: &security.Authorization{Name: "wrong-ns", Namespace: "not-ns"},
    				},
    				model.WorkloadAuthorization{
    					LabelSelector: model.NewSelector(map[string]string{"app": "foo"}),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/services.go

    		}
    		a.networkUpdateTrigger.MarkDependant(ctx) // Mark we depend on out of band a.Network
    		return &model.ServiceInfo{
    			Service:       a.constructService(s, waypoint),
    			PortNames:     portNames,
    			LabelSelector: model.NewSelector(s.Spec.Selector),
    			Source:        kind.Service,
    			Waypoint:      waypointKey,
    		}
    	}, krt.WithName("ServicesInfo"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. pkg/kube/namespace/filter.go

    func (d *discoveryNamespacesFilter) selectorsChanged(
    	discoverySelectors []*meshapi.LabelSelector,
    	notify bool,
    ) {
    	d.lock.Lock()
    	defer d.lock.Unlock()
    	var selectors []labels.Selector
    	newDiscoveryNamespaces := sets.New[string]()
    
    	namespaceList := d.namespaces.List("", labels.Everything())
    
    	// convert LabelSelectors to Selectors
    	for _, selector := range discoverySelectors {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 17:12:52 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. pkg/test/framework/components/istio/kube.go

    	i.mu.Lock()
    	defer i.mu.Unlock()
    
    	if i.ingress[c.Name()] == nil {
    		i.ingress[c.Name()] = map[string]ingress.Instance{}
    	}
    	if _, ok := i.ingress[c.Name()][labelSelector]; !ok {
    		ingr := newIngress(i.ctx, ingressConfig{
    			Cluster:       c,
    			Service:       service,
    			LabelSelector: labelSelector,
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  7. api/openapi-spec/swagger.json

    the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3.1M bytes
    - Viewed (0)
  8. pkg/kube/kclient/client_test.go

    	}
    }
    
    func TestFilterNamespace(t *testing.T) {
    	tracker := assert.NewTracker[string](t)
    	c := kube.NewFakeClient()
    	meshWatcher := mesh.NewTestWatcher(&meshconfig.MeshConfig{DiscoverySelectors: []*meshconfig.LabelSelector{{
    		MatchLabels: map[string]string{"kubernetes.io/metadata.name": "selected"},
    	}}})
    	testns := clienttest.NewWriter[*corev1.Namespace](t, c)
    	discoveryNamespacesFilter := filter.NewDiscoveryNamespacesFilter(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 15:12:54 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  9. cluster/addons/dns/kube-dns/kube-dns.yaml.in

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

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