- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for SetupProxy (0.29 sec)
-
pilot/pkg/xds/xds_test.go
}, }) proxy := s.SetupProxy(baseProxy()) assertListEqual(t, xdstest.ExtractClusterEndpoints(s.Clusters(proxy))["outbound|80||app.com"], []string{"included.com:80"}) }) } func TestSidecarListeners(t *testing.T) { t.Run("empty", func(t *testing.T) { s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{}) proxy := s.SetupProxy(&model.Proxy{ IPAddresses: []string{"10.2.0.1"},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 13.8K bytes - Viewed (0) -
pilot/pkg/networking/core/listener_builder_test.go
}, }, } cg := NewConfigGenTest(t, TestOptions{Configs: getEnvoyFilterConfigs(configPatches)}) gatewayProxy := cg.SetupProxy(&model.Proxy{Type: model.Router, ConfigNamespace: "not-default"}) sidecarProxy := cg.SetupProxy(&model.Proxy{ConfigNamespace: "not-default"}) type fields struct { GatewayListeners []*listener.Listener InboundListeners []*listener.Listener
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 24.7K bytes - Viewed (0) -
pilot/pkg/xds/sds_test.go
} else { xds.DisableAuthorizationForSecret(cc) } cc.Fake.Unlock() gen := s.Discovery.Generators[v3.SecretType] tt.request.Start = time.Now() secrets, _, _ := gen.Generate(s.SetupProxy(tt.proxy), &model.WatchedResource{ResourceNames: tt.resources}, tt.request) raw := xdstest.ExtractTLSSecrets(t, xdsserver.ResourcesToAny(secrets)) got := map[string]Expected{} for _, scrt := range raw {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 13 20:55:20 UTC 2024 - 17.7K bytes - Viewed (0) -
pilot/pkg/networking/core/networkfilter_test.go
clusterName: "inbound|8888||", port: model.ServiceInstancePort{ ServicePort: &model.Port{}, }, } listenerFilters := NewListenerBuilder(cg.SetupProxy(nil), cg.PushContext()).buildInboundNetworkFilters(fcc) tcp := &tcp.TcpProxy{} listenerFilters[len(listenerFilters)-1].GetTypedConfig().UnmarshalTo(tcp) if tcp.StatPrefix != tt.expectedStatPrefix {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 25.8K bytes - Viewed (0) -
pilot/pkg/networking/core/fake.go
f.ServiceEntryRegistry.ResyncEDS() } // SetupProxy initializes a proxy for the current environment. This should generally be used when creating // any proxy. For example, `p := SetupProxy(&model.Proxy{...})`. func (f *ConfigGenTest) SetupProxy(p *model.Proxy) *model.Proxy { // Setup defaults if p == nil { p = &model.Proxy{} } if p.Metadata == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 11.5K bytes - Viewed (0) -
pilot/pkg/xds/mesh_network_test.go
s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{ KubernetesObjects: kubeObjects, Configs: configObjects, NetworksWatcher: meshNetworks, }) for _, w := range workloads { w.setupProxy(s) } t.Run("no gateway", func(t *testing.T) { vm.Expect(pod, "10.10.10.10:8080") vm.Test(t, s) }) t.Run("gateway added via label", func(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 24.6K bytes - Viewed (0) -
pilot/pkg/xds/endpoints/ep_filters_test.go
for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { cn := fmt.Sprintf("outbound|80|%s|example.ns.svc.cluster.local", subset) proxy := ds.SetupProxy(tt.proxy) b := endpoints.NewEndpointBuilder(cn, proxy, ds.PushContext()) filtered := b.BuildClusterLoadAssignment(testShards()).Endpoints xdstest.CompareEndpointsOrFail(t, cn, filtered, tt.want)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 01:17:58 UTC 2024 - 26.8K bytes - Viewed (0) -
pilot/pkg/xds/ecds_test.go
ClusterID: constants.DefaultClusterName, }, } tt.request.Push = s.PushContext() tt.request.Push.Mesh.RootNamespace = "istio-system" resources, _, _ := gen.Generate(s.SetupProxy(proxy), &model.WatchedResource{ResourceNames: tt.watchedResources}, tt.request) gotExtensions := sets.String{} gotSecrets := sets.String{} for _, res := range resources { gotExtensions.Insert(res.Name)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 12K bytes - Viewed (0) -
pilot/pkg/networking/core/accesslog_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:30 UTC 2024 - 19.9K bytes - Viewed (0) -
pilot/test/xds/fake.go
watches = append(watches, sch.GroupVersionKind().String()) } return watches } func (f *FakeDiscoveryServer) ConnectUnstarted(p *model.Proxy, watch []string) *adsc.ADSC { f.t.Helper() p = f.SetupProxy(p) initialWatch := []*discovery.DiscoveryRequest{} for _, typeURL := range watch { initialWatch = append(initialWatch, &discovery.DiscoveryRequest{TypeUrl: typeURL}) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 10 16:08:52 UTC 2024 - 18.4K bytes - Viewed (0)