- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsServiceVisible (0.27 sec)
-
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) -
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) -
pilot/pkg/model/push_context.go
for _, service := range ps.ServiceIndex.HostnameAndNamespace[hostname] { return service } // No service found return nil } // IsServiceVisible returns true if the input service is visible to the given namespace. func (ps *PushContext) IsServiceVisible(service *Service, namespace string) bool { if service == nil { return false } ns := service.Attributes.Namespace
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 09:02:11 UTC 2024 - 91.8K bytes - Viewed (0) -
pilot/pkg/model/push_context_test.go
visibility.None, ), }, }, expect: false, }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { isVisible := c.pushContext.IsServiceVisible(c.service, targetNamespace) g := NewWithT(t) g.Expect(isVisible).To(Equal(c.expect)) }) } } func serviceNames(svcs []*Service) []string { var s []string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 95.3K bytes - Viewed (0)