Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for NewServiceDiscovery (0.16 sec)

  1. pilot/pkg/networking/core/fake.go

    		configController,
    		xdsUpdater,
    		env.Watcher,
    		serviceentry.WithClusterID(opts.ClusterID))
    	// TODO allow passing in registry, for k8s, mem reigstry
    	serviceDiscovery.AddRegistry(se)
    	msd := memregistry.NewServiceDiscovery(opts.Services...)
    	msd.XdsUpdater = xdsUpdater
    	for _, instance := range opts.Instances {
    		msd.AddInstance(instance)
    	}
    	msd.AddGateways(opts.Gateways...)
    	msd.ClusterID = cluster2.ID(provider.Mock)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/envoyfilter/cluster_patch_test.go

    			patchContext: networking.EnvoyFilter_GATEWAY,
    			proxy:        &model.Proxy{Type: model.Router, ConfigNamespace: "not-default"},
    			output:       gatewayOutput,
    		},
    	}
    
    	serviceDiscovery := memory.NewServiceDiscovery()
    	env := newTestEnvironment(serviceDiscovery, testMesh, buildEnvoyFilterConfigStore(configPatches))
    	push := model.NewPushContext()
    	push.InitContext(env, nil, nil)
    	for _, tc := range testCases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/accesslog_test.go

    		t.Fatalf("unexpected access log: %v", xdstest.ExtractTCPProxy(t, fc).GetAccessLog())
    	}
    }
    
    func newTestEnviroment() *model.Environment {
    	serviceDiscovery := memregistry.NewServiceDiscovery(&model.Service{
    		Hostname:       "test.example.org",
    		DefaultAddress: "1.1.1.1",
    		Ports: model.PortList{
    			&model.Port{
    				Name:     "default",
    				Port:     8080,
    				Protocol: protocol.HTTP,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/envoyfilter/listener_patch_test.go

    		Metadata: &model.NodeMetadata{
    			IstioVersion: "1.2.2",
    			Raw: map[string]any{
    				"foo": "sidecar",
    				"bar": "proxy",
    			},
    		},
    	}
    	serviceDiscovery := memregistry.NewServiceDiscovery()
    	e := newTestEnvironment(serviceDiscovery, testMesh, buildEnvoyFilterConfigStore(configPatches))
    	push := model.NewPushContext()
    	_ = push.InitContext(e, nil, nil)
    
    	// Test different priorities
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 70.1K bytes
    - Viewed (0)
Back to top