Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for sniHosts (0.26 sec)

  1. pilot/pkg/networking/core/listener.go

    	}
    	if len(chain.sniHosts) > 0 {
    		fullWildcardFound := false
    		for _, h := range chain.sniHosts {
    			if h == "*" {
    				fullWildcardFound = true
    				// If we have a host with *, it effectively means match anything, i.e.
    				// no SNI based matching for this host.
    				break
    			}
    		}
    		if !fullWildcardFound {
    			chain.sniHosts = append([]string{}, chain.sniHosts...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  2. pilot/pkg/model/gateway.go

    	}
    	// sanitize the server hosts as it could contain hosts of form ns/host
    	sniHosts := sets.String{}
    	for _, h := range server.Hosts {
    		if strings.Contains(h, "/") {
    			parts := strings.Split(h, "/")
    			h = parts[1]
    		}
    		// do not add hosts, that have already been added
    		sniHosts.Insert(h)
    	}
    	return sets.SortedList(sniHosts)
    }
    
    // CheckDuplicates returns all of the hosts provided that are already known
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/gateway_test.go

    				t.Errorf("expecting httpopts:\n %+v \nbut got:\n %+v", tc.result.httpOpts, ret.httpOpts)
    			}
    			if !reflect.DeepEqual(tc.result.sniHosts, ret.sniHosts) {
    				t.Errorf("expecting snihosts %+v but got %+v", tc.result.sniHosts, ret.sniHosts)
    			}
    		})
    	}
    }
    
    func TestGatewayHTTPRouteConfig(t *testing.T) {
    	httpRedirectGateway := config.Config{
    		Meta: config.Meta{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 144K bytes
    - Viewed (0)
  4. tests/testdata/config/none.yaml

      namespace: none
    spec:
      hosts:
      - www1.googleapis.com
      - api1.facebook.com
      tls:
      - match:
        - port: 2443
          sniHosts:
          - www1.googleapis.com
        route:
        - destination:
            host: www1.googleapis.com
      - match:
        - port: 2443
          sniHosts:
          - api1.facebook.com
        route:
        - destination:
            host: api1.facebook.com
    ---
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 22 21:13:54 UTC 2020
    - 8.8K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/serviceentry_simulation_test.go

        protocol: TCP
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: vs1
    spec:
      hosts:
      - blah.somedomain
      tls:
      - match:
        - port: 9999
          sniHosts:
          - blah.somedomain
        route:
        - destination:
            host: blah.somedomain
            port:
              number: 9999`
    
    func TestServiceEntry(t *testing.T) {
    	cases := []simulationTest{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 21:06:06 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/gateway/conversion.go

    	for _, r := range routes {
    		if len(r.Match) == 1 && len(r.Match[0].SniHosts) > 1 {
    			r = r.DeepCopy()
    			sniHosts := []string{}
    			for _, h := range r.Match[0].SniHosts {
    				if host.Name(parentHost).Matches(host.Name(h)) {
    					sniHosts = append(sniHosts, h)
    				}
    			}
    			r.Match[0].SniHosts = sniHosts
    		}
    		res = append(res, r)
    	}
    	return res
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/gateway/testdata/mesh.yaml.golden

      creationTimestamp: null
      name: tls-tls-0-istio-autogenerated-k8s-gateway
      namespace: default
    spec:
      gateways:
      - mesh
      hosts:
      - echo-1.default.svc.domain.suffix
      tls:
      - match:
        - sniHosts:
          - echo-1.default.svc.domain.suffix
        route:
        - destination:
            host: echo.default.svc.domain.suffix
            port:
              number: 80
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 19 18:39:48 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/gateway_simulation_test.go

    kind: VirtualService
    metadata:
      name: vs1
      namespace: default
    spec:
      gateways:
      - istio-system/ingressgateway
      hosts:
      - mysite.example.com
      tls:
      - match:
        - port: 443
          sniHosts:
          - mysite.example.com
        route:
        - destination:
            host: mysite.default.svc.cluster.local
            port:
              number: 443
    ---
    apiVersion: networking.istio.io/v1alpha3
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 18:27:40 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/listener_test.go

    			Tls: []*networking.TLSRoute{
    				{
    					Match: []*networking.TLSMatchAttributes{
    						{
    							DestinationSubnets: []string{"10.10.0.0/24", "11.10.0.0/24"},
    							Port:               8080,
    							SniHosts:           []string{"a", "b", "c"},
    						},
    					},
    					Route: []*networking.RouteDestination{
    						{
    							Destination: &networking.Destination{
    								Host: "test.org",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
  10. pkg/config/validation/validation_test.go

    		{name: "missing tls route", in: &networking.VirtualService{
    			Hosts: []string{"foo.bar"},
    			Tls: []*networking.TLSRoute{{
    				Match: []*networking.TLSMatchAttributes{
    					{
    						Port:     999,
    						SniHosts: []string{"foo.bar"},
    					},
    				},
    			}},
    		}, valid: false},
    		{name: "deprecated mirror", in: &networking.VirtualService{
    			Hosts:    []string{"foo.bar"},
    			Gateways: []string{"ns1/gateway"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
Back to top