Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 91 for pushContext (0.18 sec)

  1. 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)
  2. pilot/pkg/networking/plugin/authz/authorization.go

    	tcpFilters  []*listener.Filter
    	builder     *builder.Builder
    }
    
    func NewBuilder(actionType ActionType, push *model.PushContext, proxy *model.Proxy, useFilterState bool) *Builder {
    	return NewBuilderForService(actionType, push, proxy, useFilterState, nil)
    }
    
    func NewBuilderForService(actionType ActionType, push *model.PushContext, proxy *model.Proxy, useFilterState bool, svc *model.Service) *Builder {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pilot/pkg/security/authn/factory.go

    }
    
    // NewPolicyApplier returns the appropriate (policy) applier, depends on the versions of the policy exists
    // for the given service innstance.
    func NewPolicyApplier(push *model.PushContext, proxy *model.Proxy, svc *model.Service) PolicyApplier {
    	forWorkload := model.PolicyMatcherForProxy(proxy).WithService(svc)
    	return newPolicyApplier(
    		push.AuthnPolicies.GetRootNamespace(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. pilot/pkg/networking/plugin/authn/authentication.go

    type Builder struct {
    	applier      authn.PolicyApplier
    	trustDomains []string
    	proxy        *model.Proxy
    }
    
    func NewBuilder(push *model.PushContext, proxy *model.Proxy) *Builder {
    	return NewBuilderForService(push, proxy, nil)
    }
    
    func NewBuilderForService(push *model.PushContext, proxy *model.Proxy, svc *model.Service) *Builder {
    	applier := authn.NewPolicyApplier(push, proxy, svc)
    	trustDomains := TrustDomainsForValidation(push.Mesh)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. pilot/pkg/model/push_context_test.go

    func TestIsServiceVisible(t *testing.T) {
    	targetNamespace := "foo"
    	cases := []struct {
    		name        string
    		pushContext *PushContext
    		service     *Service
    		expect      bool
    	}{
    		{
    			name: "service whose namespace is foo has no exportTo map with global private",
    			pushContext: &PushContext{
    				exportToDefaults: exportToDefaults{
    					service: sets.New(visibility.Private),
    				},
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  10. 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)
Back to top