Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newEndpointWithAccount (0.26 sec)

  1. pilot/pkg/xds/delta_test.go

    	}
    	s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{})
    	addTestClientEndpoints(s.MemRegistry)
    	s.MemRegistry.AddHTTPService(edsIncSvc, edsIncVip, 8080)
    	s.MemRegistry.SetEndpoints(edsIncSvc, "",
    		newEndpointWithAccount("127.0.0.1", "hello-sa", "v1"))
    	// Wait until the above debounce, to ensure we can precisely check XDS responses without spurious pushes
    	s.EnsureSynced(t)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. pilot/pkg/xds/eds_test.go

    		if len(clusters) == 0 {
    			t.Error("No clusters in ADS response")
    		}
    	})
    }
    
    // newEndpointWithAccount is a helper for IstioEndpoint creation. Creates endpoints with
    // port name "http", with the given IP, service account and a 'version' label.
    // nolint: unparam
    func newEndpointWithAccount(ip, account, version string) []*model.IstioEndpoint {
    	return []*model.IstioEndpoint{
    		{
    			Address:         ip,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  3. pilot/pkg/xds/ads_test.go

    			Namespace: "default",
    		},
    	})
    	s.Discovery.ConfigUpdate(&model.PushRequest{Full: true})
    	time.Sleep(time.Millisecond * 200)
    	s.MemRegistry.SetEndpoints("adsupdate.default.svc.cluster.local", "default",
    		newEndpointWithAccount("10.2.0.1", "hello-sa", "v1"))
    
    	cluster := "outbound|2080||adsupdate.default.svc.cluster.local"
    	res := ads.RequestResponseAck(t, &discovery.DiscoveryRequest{
    		ResourceNames: []string{cluster},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top