Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 91 for WorkloadSelector (0.27 sec)

  1. pkg/config/validation/envoyfilter/envoyfilter_test.go

    		error   string
    		warning string
    	}{
    		{name: "empty filters", in: &networking.EnvoyFilter{}, error: ""},
    		{name: "labels not defined in workload selector", in: &networking.EnvoyFilter{
    			WorkloadSelector: &networking.WorkloadSelector{},
    		}, error: "", warning: "Envoy filter: workload selector specified without labels, will be applied to all services in namespace"},
    		{name: "invalid applyTo", in: &networking.EnvoyFilter{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/accesslog_test.go

    	configStore.Create(config.Config{
    		Meta: config.Meta{
    			Name:             "test",
    			Namespace:        "default",
    			GroupVersionKind: gvk.Telemetry,
    		},
    		Spec: &tpb.Telemetry{
    			Selector: &v1beta1.WorkloadSelector{
    				MatchLabels: map[string]string{
    					"app": "test",
    				},
    			},
    			AccessLogging: []*tpb.AccessLogging{
    				{
    					Providers: []*tpb.ProviderRef{
    						{
    							Name: "envoy-json",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. pkg/config/validation/envoyfilter/envoyfilter.go

    	rule, ok := cfg.Spec.(*networking.EnvoyFilter)
    	if !ok {
    		return nil, fmt.Errorf("cannot cast to Envoy filter")
    	}
    	warning, err := validation.ValidateAlphaWorkloadSelector(rule.WorkloadSelector)
    	if err != nil {
    		return nil, err
    	}
    
    	// If workloadSelector is defined and labels are not set, it is most likely
    	// an user error. Marking it as a warning to keep it backwards compatible.
    	if warning != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_serviceentry_test.go

    					WorkloadName:      "name0",
    					ClusterId:         testC,
    				},
    			},
    		},
    	}})
    
    	// test code path where service entry selects workloads via `ServiceEntry.workloadSelector`
    	s.addPods(t, "140.140.0.10", "pod1", "sa1", map[string]string{"app": "a"}, nil, true, corev1.PodRunning)
    	s.assertEvent(t, s.podXdsName("pod1"))
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 03:01:04 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. pkg/config/validation/validation.go

    		rule, ok := cfg.Spec.(*networking.Sidecar)
    		if !ok {
    			return nil, fmt.Errorf("cannot cast to Sidecar")
    		}
    
    		warning, err := ValidateAlphaWorkloadSelector(rule.WorkloadSelector)
    		if err != nil {
    			return nil, err
    		}
    
    		// If workloadSelector is defined and labels are not set, it is most likely
    		// an user error. Marking it as a warning to keep it backwards compatible.
    		if warning != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  6. pilot/pkg/model/policyattachment.go

    type TargetablePolicy interface {
    	GetTargetRef() *v1beta1.PolicyTargetReference
    	GetTargetRefs() []*v1beta1.PolicyTargetReference
    	GetSelector() *v1beta1.WorkloadSelector
    }
    
    // WorkloadPolicyMatcher performs policy selection either using targetRef or label selectors.
    // Label selection uses the workload labels.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/peer_authentication_simulation_test.go

          number: 8080
          protocol: TCP
      - defaultEndpoint: 127.0.0.1:9090
        port:
          name: plaintext
          number: 9090
          protocol: TCP
      egress:
      - hosts:
        - "*/*"
      workloadSelector:
        labels:
          app: foo
    ---`
    	partialSidecar := `
    apiVersion: networking.istio.io/v1alpha3
    kind: Sidecar
    metadata:
      labels:
        app: foo
      name: sidecar
    spec:
      ingress:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. pilot/pkg/xds/proxy_dependencies_test.go

    				Meta: config.Meta{
    					GroupVersionKind: gvk.RequestAuthentication,
    					Name:             jwksSvc,
    					Namespace:        nsName,
    				},
    				Spec: &security.RequestAuthentication{
    					Selector: &v1beta1.WorkloadSelector{MatchLabels: gateway.Labels},
    					JwtRules: []*security.JWTRule{{JwksUri: "https://" + jwksSvc}},
    				},
    			},
    			{
    				Meta: config.Meta{
    					GroupVersionKind: gvk.RequestAuthentication,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. pilot/pkg/xds/endpoints/ep_filters_test.go

    					GroupVersionKind: gvk.PeerAuthentication,
    					Name:             "mtls-partial",
    					Namespace:        "istio-system",
    				},
    				Spec: &security.PeerAuthentication{
    					Selector: &v1beta1.WorkloadSelector{
    						// shouldn't affect our test workload
    						MatchLabels: map[string]string{"app": "b"},
    					},
    					Mtls: &security.PeerAuthentication_MutualTLS{Mode: security.PeerAuthentication_MutualTLS_DISABLE},
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  10. tests/integration/pilot/workloadentry_test.go

      - 240.240.240.240
      hosts: 
      - serviceentry.mesh.global
      ports:
      - number: 80
        targetPort: 18080
        name: http
        protocol: HTTP
      resolution: STATIC
      location: MESH_INTERNAL
      workloadSelector:
        labels:
          app: b
          topology.istio.io/cluster: %s
    `
    
    			exposeServices := `
    apiVersion: networking.istio.io/v1alpha3
    kind: Gateway
    metadata:
      name: cross-network-gateway
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top