- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for NewFixedWatcher (0.19 sec)
-
pilot/pkg/serviceregistry/kube/controller/multicluster_test.go
} func initController(client kube.CLIClient, ns string, stop <-chan struct{}) *multicluster.Controller { sc := multicluster.NewController(client, ns, "cluster-1", mesh.NewFixedWatcher(nil)) sc.ClientBuilder = func(kubeConfig []byte, c cluster.ID, configOverrides ...func(*rest.Config)) (kube.Client, error) { return kube.NewFakeClient(), nil } client.RunAndWait(stop) return sc }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 12 16:44:32 UTC 2024 - 6.7K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/endpoint_builder_test.go
Spec: v1.NodeSpec{}, Status: v1.NodeStatus{}, }) nodes := kclient.New[*v1.Node](fc) fc.RunAndWait(test.NewStop(t)) cc := &Controller{ nodes: nodes, meshWatcher: mesh.NewFixedWatcher(mesh.DefaultMeshConfig()), networkManager: &networkManager{ clusterID: c.ctl.cluster, network: c.ctl.network, }, opts: Options{ClusterID: c.ctl.cluster}, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/kube/multicluster/secretcontroller_test.go
var ( expectedQPS = float32(100) expectedBurst = 200 ) fakeRestConfig := &rest.Config{} client := kube.NewFakeClient() stopCh := test.NewStop(t) c := NewController(client, secretNamespace, "", mesh.NewFixedWatcher(nil), func(cfg *rest.Config) { cfg.QPS = expectedQPS cfg.Burst = expectedBurst }) c.ClientBuilder = func(kubeConfig []byte, c cluster.ID, configOverrides ...func(*rest.Config)) (kube.Client, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 17.6K bytes - Viewed (0) -
pkg/config/mesh/watcher.go
// Current merged mesh config MeshConfig atomic.Pointer[meshconfig.MeshConfig] userMeshConfig string revMeshConfig string } // NewFixedWatcher creates a new Watcher that always returns the given mesh config. It will never // fire any events, since the config never changes. func NewFixedWatcher(mesh *meshconfig.MeshConfig) Watcher { iw := internalWatcher{} iw.MeshConfig.Store(mesh) return &iw }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 20 18:33:38 UTC 2023 - 7.4K bytes - Viewed (0) -
pilot/pkg/model/cluster_local_test.go
host: "s.ns3.svc.cluster.local", expected: false, }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { g := NewWithT(t) env := &model.Environment{Watcher: mesh.NewFixedWatcher(c.m)} env.Init() clusterLocal := env.ClusterLocal().GetClusterLocalHosts().IsClusterLocal(host.Name(c.host)) g.Expect(clusterLocal).To(Equal(c.expected)) }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3.9K bytes - Viewed (0) -
pilot/pkg/model/push_context_test.go
for _, cfg := range envoyFilters { _, _ = store.Create(cfg) } env.ConfigStore = store m := mesh.DefaultMeshConfig() env.Watcher = mesh.NewFixedWatcher(m) env.Init() // Init a new push context pc := NewPushContext() pc.initEnvoyFilters(env, nil, nil) gotns := make([]string, 0) for _, filter := range pc.envoyFiltersByNamespace["testns"] {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 95.3K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/fake.go
if opts.DomainSuffix != "" { domainSuffix = opts.DomainSuffix } if opts.Client == nil { opts.Client = kubelib.NewFakeClient() } if opts.MeshWatcher == nil { opts.MeshWatcher = mesh.NewFixedWatcher(&meshconfig.MeshConfig{TrustDomain: "cluster.local"}) } cleanupStop := false stop := opts.Stop if stop == nil { // If we created the stop, clean it up. Otherwise, caller is responsible cleanupStop = true
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 4K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/autoserviceexportcontroller_test.go
ClusterLocal: true, }, Hosts: []string{"*.unexportable-ns.svc.cluster.local", "unexportable-svc.*.svc.cluster.local"}, }, }, } env := model.Environment{Watcher: mesh.NewFixedWatcher(&m)} env.Init() sc := newAutoServiceExportController(autoServiceExportOptions{ Client: client, ClusterID: "", DomainSuffix: env.DomainSuffix, ClusterLocal: env.ClusterLocal(), })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 06 16:02:24 UTC 2023 - 4.9K bytes - Viewed (0) -
pilot/pkg/bootstrap/mesh.go
} return } } // Config file either didn't exist or failed to load. if s.kubeClient == nil { // Use a default mesh. meshConfig := mesh.DefaultMeshConfig() s.environment.Watcher = mesh.NewFixedWatcher(meshConfig) log.Warnf("Using default mesh - missing file %s and no k8s client", args.MeshConfigFile) return } // Watch the istio ConfigMap for mesh config changes. // This may be necessary for external Istiod.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 4.5K bytes - Viewed (0) -
pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go
}, } configStore := memory.Make(collections.Pilot) env := model.NewEnvironment() env.ServiceDiscovery = serviceDiscovery env.ConfigStore = configStore env.Watcher = mesh.NewFixedWatcher(meshConfig) pushContext := model.NewPushContext() env.Init() _ = pushContext.InitContext(env, nil, nil) env.SetPushContext(pushContext) pushContext.SetDestinationRulesForTesting([]config.Config{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 23 05:38:57 UTC 2024 - 39.1K bytes - Viewed (0)