- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 163 for NamespacedName (0.71 sec)
-
pilot/pkg/serviceregistry/kube/controller/pod.go
needResync map[string]sets.Set[types.NamespacedName] queueEndpointEvent func(types.NamespacedName) c *Controller } func newPodCache(c *Controller, pods kclient.Client[*v1.Pod], queueEndpointEvent func(types.NamespacedName)) *PodCache { out := &PodCache{ pods: pods, c: c, podsByIP: make(map[string]sets.Set[types.NamespacedName]),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 10.8K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/store.go
return s.instancesBySE[key] } func (s *serviceInstancesStore) updateServiceEntryInstances(key types.NamespacedName, instances map[configKey][]*model.ServiceInstance) { s.instancesBySE[key] = instances }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 6.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/store_test.go
} store.updateServices(httpDNSRR.NamespacedName(), expectedServices) got := store.getServices(httpDNSRR.NamespacedName()) if !reflect.DeepEqual(got, expectedServices) { t.Errorf("got unexpected services %v", got) } got = store.getAllServices() if !reflect.DeepEqual(got, expectedServices) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 8.1K bytes - Viewed (0) -
pkg/proxy/endpointslicecache_test.go
testCases := map[string]struct { endpointSlices []*discovery.EndpointSlice hostname string namespacedName types.NamespacedName expectedMap map[ServicePortName][]*BaseEndpointInfo }{ "1 slice, 2 hosts, ports 80,443": { namespacedName: types.NamespacedName{Name: "svc1", Namespace: "ns1"}, hostname: "host1", endpointSlices: []*discovery.EndpointSlice{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:07:21 UTC 2024 - 24.9K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/util.go
func getWorkloadServiceEntries(ses []config.Config, wle *networking.WorkloadEntry) map[types.NamespacedName]*config.Config { out := make(map[types.NamespacedName]*config.Config) for i, cfg := range ses { se := cfg.Spec.(*networking.ServiceEntry) if se.WorkloadSelector != nil && labels.Instance(se.WorkloadSelector.Labels).Match(wle.Labels) { out[cfg.NamespacedName()] = &ses[i] } } return out }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 02:03:58 UTC 2024 - 1.9K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/util_test.go
}, } expected := map[types.NamespacedName]*config.Config{ {Namespace: "default", Name: "se-1"}: &se1, {Namespace: "default", Name: "se-3"}: &se3, } got := getWorkloadServiceEntries(ses, wle) if !reflect.DeepEqual(got, expected) { t.Errorf("recv unexpected se: %v", got) } } func TestCompareServiceEntries(t *testing.T) { oldSes := map[types.NamespacedName]*config.Config{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 17 22:32:10 UTC 2023 - 3.5K bytes - Viewed (0) -
pilot/pkg/networking/core/extension_config_builder.go
extensions = append(extensions, extension.InsertedExtensionConfigurations(wasmPlugins, extensionConfigNames, pullSecrets)...) return extensions } func parseExtensionName(names []string) []types.NamespacedName { res := make([]types.NamespacedName, 0, len(names)) for _, n := range names { if !strings.HasPrefix(n, model.WasmPluginResourceNamePrefix) { log.Warnf("ignoring unknown ECDS: %v", n) continue }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 09:02:11 UTC 2024 - 2.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/util/workloadinstances/util.go
// corresponds to a given proxy, if any. func InstanceNameForProxy(proxy *model.Proxy) types.NamespacedName { parts := strings.Split(proxy.ID, ".") if len(parts) == 2 && proxy.ConfigNamespace == parts[1] { return types.NamespacedName{Name: parts[0], Namespace: parts[1]} } return types.NamespacedName{} } // GetInstanceForProxy returns a workload instance that // corresponds to a given proxy, if any.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 17:36:41 UTC 2023 - 2.8K bytes - Viewed (0) -
pkg/proxy/endpointschangetracker_test.go
if len(changes) != 0 { t.Errorf("Expected %s to have no changes", tc.namespacedName) } } else { if _, exists := changes[tc.namespacedName]; !exists { t.Fatalf("Expected %s to have changes", tc.namespacedName) } compareEndpointsMapsStr(t, changes[tc.namespacedName].current, tc.expectedCurrentChange) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 21 14:44:08 UTC 2023 - 79.9K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/endpointslice.go
namespacedName := getServiceNamespacedName(ep) log.Debugf("Handle EDS endpoint %s %s in namespace %s", namespacedName.Name, event, namespacedName.Namespace) if event == model.EventDelete { esc.deleteEndpointSlice(ep) } else { esc.updateEndpointSlice(ep) } hostnames := esc.c.hostNamesForNamespacedName(namespacedName) // Trigger EDS push for all hostnames.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 16.9K bytes - Viewed (0)