Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for NetworksWatcher (0.31 sec)

  1. pkg/config/mesh/networks_watcher.go

    }
    
    // WatcherHandlerRegistration will be returned to caller to remove the handler later.
    type WatcherHandlerRegistration struct {
    	handler func()
    }
    
    // NetworksWatcher watches changes to the mesh networks config.
    type NetworksWatcher interface {
    	NetworksHolder
    
    	// AddNetworksHandler registers a callback handler for changes to the networks config.
    	AddNetworksHandler(func()) *WatcherHandlerRegistration
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 18:33:38 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. pilot/pkg/bootstrap/mesh.go

    	if s.environment.NetworksWatcher != nil {
    		return
    	}
    	log.Info("initializing mesh networks")
    	if args.NetworksConfigFile != "" {
    		var err error
    		s.environment.NetworksWatcher, err = mesh.NewNetworksWatcher(fileWatcher, args.NetworksConfigFile)
    		if err != nil {
    			log.Info(err)
    		}
    	}
    
    	if s.environment.NetworksWatcher == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. pilot/test/xds/fake.go

    	// If provided, the ConfigString will be treated as a go template, with this as input params
    	ConfigTemplateInput any
    	// If provided, this mesh config will be used
    	MeshConfig      *meshconfig.MeshConfig
    	NetworksWatcher mesh.NetworksWatcher
    
    	// Callback to modify the kube client before it is started
    	KubeClientModifier func(c kubelib.Client)
    
    	// Override the default kube client constructor
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/fake.go

    	for _, reg := range opts.ServiceRegistries {
    		serviceDiscovery.AddRegistry(reg)
    	}
    	if opts.NetworksWatcher == nil {
    		opts.NetworksWatcher = mesh.NewFixedNetworksWatcher(nil)
    	}
    	env.ServiceDiscovery = serviceDiscovery
    	env.ConfigStore = configController
    	env.NetworksWatcher = opts.NetworksWatcher
    	env.Init()
    
    	fake := &ConfigGenTest{
    		t:                    t,
    		store:                configController,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/fake.go

    )
    
    const (
    	defaultFakeDomainSuffix = "company.com"
    )
    
    type FakeControllerOptions struct {
    	Client            kubelib.Client
    	CRDs              []schema.GroupVersionResource
    	NetworksWatcher   mesh.NetworksWatcher
    	MeshWatcher       mesh.Watcher
    	ServiceHandler    model.ServiceHandler
    	ClusterID         cluster.ID
    	WatchedNamespaces string
    	DomainSuffix      string
    	XDSUpdater        model.XDSUpdater
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. pilot/pkg/xds/eds_sh_test.go

    	meshNetworks := server.Env().NetworksWatcher.Networks()
    	// copy old networks if they exist
    	c := map[string]*meshconfig.Network{}
    	if meshNetworks != nil {
    		for k, v := range meshNetworks.Networks {
    			c[k] = v
    		}
    	}
    	// add the new one
    	c[string(id)] = network
    	server.Env().NetworksWatcher.SetNetworks(&meshconfig.MeshNetworks{Networks: c})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. pilot/pkg/model/context.go

    	mesh.Watcher
    
    	// NetworksWatcher (loaded from a config map) provides information about the
    	// set of networks inside a mesh and how to route to endpoints in each
    	// network. Each network provides information about the endpoints in a
    	// routable L3 network. A single routable L3 network can have one or more
    	// service registries.
    	NetworksWatcher mesh.NetworksWatcher
    
    	NetworkManager *NetworkManager
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (1)
  8. pkg/config/mesh/networks_watcher_test.go

    		g.Expect(w.Networks()).To(Equal(newN))
    		break
    	case <-time.After(time.Second * 5):
    		t.Fatal("timed out waiting for update")
    	}
    }
    
    func newNetworksWatcher(t *testing.T, filename string) mesh.NetworksWatcher {
    	t.Helper()
    	w, err := mesh.NewNetworksWatcher(filewatcher.NewWatcher(), filename)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return w
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/network_test.go

    	test.SetForTest(t, &features.MultiNetworkGatewayAPI, true)
    	meshNetworks := mesh.NewFixedNetworksWatcher(nil)
    	c, _ := NewFakeControllerWithOptions(t, FakeControllerOptions{
    		ClusterID:       constants.DefaultClusterName,
    		NetworksWatcher: meshNetworks,
    		DomainSuffix:    "cluster.local",
    		CRDs:            []schema.GroupVersionResource{gvr.KubernetesGateway},
    	})
    
    	if len(c.NetworkGateways()) != 0 {
    		t.Fatal("did not expect any gateways yet")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. pilot/pkg/bootstrap/servicecontroller.go

    	args.RegistryOptions.KubeOptions.Metrics = s.environment
    	args.RegistryOptions.KubeOptions.XDSUpdater = s.XDSServer
    	args.RegistryOptions.KubeOptions.MeshNetworksWatcher = s.environment.NetworksWatcher
    	args.RegistryOptions.KubeOptions.MeshWatcher = s.environment.Watcher
    	args.RegistryOptions.KubeOptions.SystemNamespace = args.Namespace
    	args.RegistryOptions.KubeOptions.MeshServiceController = s.ServiceController()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top