Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsServiceVisible (0.1 sec)

  1. pilot/pkg/model/sidecar.go

    func pickFirstVisibleNamespace(ps *PushContext, byNamespace map[string]*Service, configNamespace string) string {
    	nss := make([]string, 0, len(byNamespace))
    	for ns := range byNamespace {
    		if ps.IsServiceVisible(byNamespace[ns], configNamespace) {
    			nss = append(nss, ns)
    		}
    	}
    	if len(nss) > 0 {
    		sort.Strings(nss)
    		return nss[0]
    	}
    	return ""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/gateway.go

    		s, exist := push.ServiceIndex.HostnameAndNamespace[hostname][virtualService.Namespace]
    		if exist {
    			// We should check whether the selected service is visible to the proxy node.
    			if push.IsServiceVisible(s, node.ConfigNamespace) {
    				service = s
    			}
    		}
    		// If we find no service for the namespace of virtualService or the selected service is not visible to the proxy node,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 46.4K bytes
    - Viewed (0)
Back to top