- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsServiceVisible (0.15 sec)
-
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)