- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 50 for pushContext (0.26 sec)
-
pilot/pkg/networking/core/fake.go
} return out } func (f *ConfigGenTest) Routes(p *model.Proxy) []*route.RouteConfiguration { return f.RoutesFromListeners(p, f.Listeners(p)) } func (f *ConfigGenTest) PushContext() *model.PushContext { return f.env.PushContext() } func (f *ConfigGenTest) Env() *model.Environment { return f.env } func (f *ConfigGenTest) Store() model.ConfigStoreController { return f.store }
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/networking/core/accesslog_test.go
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) return env } var ( defaultJSONLabelsOut = &fileaccesslog.FileAccessLog{ Path: model.DevStdout,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:30 UTC 2024 - 19.9K bytes - Viewed (0) -
architecture/networking/pilot.md
First, we have a concept of a `Full` push. Only `Full` pushes will recompute `PushContext` on change; otherwise this is skipped and the last `PushContext` is re-used. Note: even when `Full`, we try to copy as much from the previous `PushContext` as possible. For example, if only a `WasmPlugin` changed, we would not recompute services indexes.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 07 17:53:24 UTC 2024 - 19.1K bytes - Viewed (0) -
pilot/pkg/xds/bench_test.go
initPushContext(s.Env(), proxy) return s, proxy } func initPushContext(env *model.Environment, proxy *model.Proxy) { pushContext := env.PushContext() pushContext.InitContext(env, nil, nil) proxy.SetSidecarScope(pushContext) proxy.SetGatewaysForProxy(pushContext) proxy.SetServiceTargets(env.ServiceDiscovery) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 19.7K bytes - Viewed (0) -
pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go
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{ { Meta: config.Meta{ GroupVersionKind: gvk.DestinationRule, Name: "acme",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 23 05:38:57 UTC 2024 - 39.1K bytes - Viewed (0) -
pilot/pkg/networking/core/tracing_test.go
model.AssertProvidersHandled(configureFromProviderConfigHandled) } func TestConfigureTracing(t *testing.T) { clusterName := "testcluster" authority := "testhost" clusterLookupFn = func(push *model.PushContext, service string, port int) (hostname string, cluster string, err error) { return authority, clusterName, nil } defer func() { clusterLookupFn = model.LookupCluster }()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 20:47:52 UTC 2024 - 38.6K bytes - Viewed (0) -
pilot/pkg/model/context.go
func (e *Environment) SetPushContext(pc *PushContext) { e.mutex.Lock() defer e.mutex.Unlock() e.pushContext = pc } // PushContext returns the push context with lock protected func (e *Environment) PushContext() *PushContext { e.mutex.RLock() defer e.mutex.RUnlock() return e.pushContext } // GetDiscoveryAddress parses the DiscoveryAddress specified via MeshConfig.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 03 08:29:05 UTC 2024 - 33.6K bytes - Viewed (0) -
pilot/pkg/networking/grpcgen/lds.go
// The request may include a list of resource names, using the full_hostname[:port] format to select only // specific services. func (g *GrpcConfigGenerator) BuildListeners(node *model.Proxy, push *model.PushContext, names []string) model.Resources { filter := newListenerNameFilter(names, node) log.Debugf("building lds for %s with filter:\n%v", node.ID, filter) resp := make(model.Resources, 0, len(filter))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 14.6K bytes - Viewed (0) -
pilot/pkg/xds/proxy_dependencies_test.go
want: true, }, ) for _, tt := range cases { t.Run(tt.name, func(t *testing.T) { cg.PushContext().Mesh.RootNamespace = nsRoot got := DefaultProxyNeedsPush(tt.proxy, &model.PushRequest{ConfigsUpdated: tt.configs, Push: cg.PushContext()}) if got != tt.want { t.Fatalf("Got needs push = %v, expected %v", got, tt.want) } }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 13.5K 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)