Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for altHosts (0.12 sec)

  1. pkg/dns/client/dns.go

    		// shortname+. is only for hosts in current namespace
    		var altHosts sets.String
    		if ni.Registry == string(provider.Kubernetes) {
    			altHosts = generateAltHosts(hostname, ni, h.proxyNamespace, h.proxyDomain, h.proxyDomainParts)
    		} else {
    			if !strings.HasSuffix(hostname, ".") {
    				hostname += "."
    			}
    			altHosts = sets.New(hostname)
    		}
    		ipv4, ipv6 := netutil.ParseIPsSplitToV4V6(ni.Ips)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. pkg/dns/proto/nds.pb.go

    	// Deprecated. Was added for experimentation only.
    	//
    	// Deprecated: Marked as deprecated in dns/proto/nds.proto.
    	AltHosts []string `protobuf:"bytes,5,rep,name=alt_hosts,json=altHosts,proto3" json:"alt_hosts,omitempty"`
    }
    
    func (x *NameTable_NameInfo) Reset() {
    	*x = NameTable_NameInfo{}
    	if protoimpl.UnsafeEnabled {
    		mi := &file_dns_proto_nds_proto_msgTypes[1]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 02:27:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/httproute.go

    	for _, a := range service.Attributes.Aliases {
    		all = append(all, a.Hostname.String())
    	}
    	for _, s := range all {
    		altHosts := GenerateAltVirtualHosts(s, port, node.DNSDomain)
    		domains = appendDomainPort(domains, s, port)
    		domains = append(domains, altHosts...)
    		allAltHosts = append(allAltHosts, altHosts...)
    	}
    
    	if service.Resolution == model.Passthrough &&
    		service.Attributes.ServiceRegistry == provider.Kubernetes {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  4. pkg/dns/client/dns_test.go

    			expected:   sets.New("example.localhost."),
    		},
    	}
    
    	nt := d.NameTable()
    	nt = proto.Clone(nt).(*dnsProto.NameTable)
    	d.BuildAlternateHosts(nt, func(althosts map[string]struct{}, ipv4 []netip.Addr, ipv6 []netip.Addr, _ []string) {
    		for host := range althosts {
    			if _, exists := nt.Table[host]; !exists {
    				addresses := make([]string, 0, len(ipv4)+len(ipv6))
    				for _, addr := range ipv4 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. pkg/istio-agent/agent.go

    		nt := a.localDNSServer.NameTable()
    		nt = proto.Clone(nt).(*dnsProto.NameTable)
    		a.localDNSServer.BuildAlternateHosts(nt, func(althosts map[string]struct{}, ipv4 []netip.Addr, ipv6 []netip.Addr, _ []string) {
    			for host := range althosts {
    				if _, exists := nt.Table[host]; !exists {
    					addresses := make([]string, 0, len(ipv4)+len(ipv6))
    					for _, addr := range ipv4 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  6. pilot/pkg/model/sidecar.go

    		}
    
    		// exact hosts are saved separately for map lookup
    		if !hName.IsWildCarded() {
    			hostsByNamespace[ns].exactHosts.Insert(hName)
    		}
    
    		// allHosts contains the exact hosts and wildcard hosts,
    		// since SelectVirtualServices will use `Matches` semantic matching.
    		hc := hostsByNamespace[ns]
    		hc.allHosts = append(hc.allHosts, hName)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  7. pkg/dns/proto/nds.proto

            // The k8s namespace for the service. Only applies when registry=`Kubernetes`
            string namespace = 4;
    
            // Deprecated. Was added for experimentation only.
            repeated string alt_hosts = 5 [deprecated = true];
        }
    
        // Map of hostname to resolution attributes.
        map<string, NameInfo> table = 1;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 01 20:40:32 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  8. pilot/pkg/model/sidecar_test.go

    			},
    			services:  []*Service{serviceA8000},
    			expected:  []*Service{serviceA8000},
    			namespace: "a",
    		},
    		{
    			name: "fall back to wildcard namespace",
    			listenerHosts: map[string]hostClassification{
    				wildcardNamespace: {allHosts: []host.Name{"host"}, exactHosts: sets.New[host.Name]("host")},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 09:38:49 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  9. pilot/pkg/model/virtualservice_test.go

    		ns := svc.Attributes.Namespace
    		if _, exists := hostsByNamespace[ns]; !exists {
    			hostsByNamespace[ns] = hostClassification{exactHosts: sets.New[host.Name](), allHosts: make([]host.Name, 0)}
    		}
    
    		hc := hostsByNamespace[ns]
    		hc.allHosts = append(hc.allHosts, svc.Hostname)
    		hostsByNamespace[ns] = hc
    
    		if !svc.Hostname.IsWildCarded() {
    			hostsByNamespace[ns].exactHosts.Insert(svc.Hostname)
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
Back to top