Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for cg (0.02 sec)

  1. pilot/pkg/networking/core/fuzz_test.go

    		fg := fuzz.New(t, data)
    		proxy := fuzz.Struct[*model.Proxy](fg)
    		to := fuzz.Struct[TestOptions](fg)
    		cg := NewConfigGenTest(t, to)
    		req := fuzz.Struct[*model.PushRequest](fg)
    		req.Push = cg.PushContext()
    		NewListenerBuilder(proxy, cg.env.PushContext()).buildSidecarOutboundListeners(cg.SetupProxy(proxy), cg.env.PushContext())
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. pilot/test/xds/fake.go

    		grpcServer.Stop()
    		_ = listener.Close()
    	})
    	// Start the discovery server
    	s.Start(stop)
    	cg.ServiceEntryRegistry.XdsUpdater = s
    	// Now that handlers are added, get everything started
    	cg.Run()
    	kubelib.WaitForCacheSync("fake", stop,
    		cg.Registry.HasSynced,
    		cg.Store().HasSynced)
    	cg.ServiceEntryRegistry.ResyncEDS()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/route/route_test.go

    				},
    			},
    		},
    	}
    
    	node := func(cg *core.ConfigGenTest) *model.Proxy {
    		return cg.SetupProxy(&model.Proxy{
    			Type:        model.SidecarProxy,
    			IPAddresses: []string{"1.1.1.1"},
    			ID:          "someID",
    			DNSDomain:   "foo.com",
    			IstioVersion: &model.IstioVersion{
    				Major: 1,
    				Minor: 20,
    			},
    		})
    	}
    
    	nodeWithExtended := func(cg *core.ConfigGenTest) *model.Proxy {
    		out := node(cg)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  4. tests/fuzz/v1alpha3_fuzzer.go

    	}
    	err = ValidateTestOptions(to)
    	if err != nil {
    		return 0
    	}
    	err = f.GenerateStruct(&proxy)
    	if err != nil || !proxy.FuzzValidate() {
    		return 0
    	}
    	cg := core.NewConfigGenTest(utils.NopTester{}, to)
    	p := cg.SetupProxy(&proxy)
    	_ = cg.Clusters(p)
    	_ = cg.Routes(p)
    	return 1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. pilot/pkg/bootstrap/discovery.go

    	generators[v3.RouteType] = &xds.RdsGenerator{ConfigGenerator: cg}
    	generators[v3.EndpointType] = edsGen
    	ecdsGen := &xds.EcdsGenerator{ConfigGenerator: cg}
    	if env.CredentialsController != nil {
    		generators[v3.SecretType] = xds.NewSecretGen(env.CredentialsController, s.Cache, clusterID, env.Mesh())
    		ecdsGen.SetCredController(env.CredentialsController)
    	}
    	generators[v3.ExtensionConfigurationType] = ecdsGen
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 16 18:25:42 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/networkfilter_test.go

    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			cg := NewConfigGenTest(t, TestOptions{Services: services})
    
    			fcc := inboundChainConfig{
    				port: model.ServiceInstancePort{ServicePort: &model.Port{}},
    			}
    			node := &model.Proxy{Metadata: &model.NodeMetadata{IdleTimeout: tt.idleTimeout}}
    			listenerFilters := NewListenerBuilder(cg.SetupProxy(node), cg.PushContext()).buildInboundNetworkFilters(fcc)
    			tcp := &tcp.TcpProxy{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/listener_builder_test.go

    	"istio.io/istio/pkg/util/protomarshal"
    	"istio.io/istio/pkg/wellknown"
    )
    
    func TestVirtualListenerBuilder(t *testing.T) {
    	cg := NewConfigGenTest(t, TestOptions{Services: testServices})
    	proxy := cg.SetupProxy(nil)
    
    	vo := xdstest.ExtractListener(model.VirtualOutboundListenerName, cg.Listeners(proxy))
    	if vo == nil {
    		t.Fatalf("didn't find virtual outbound listener")
    	}
    }
    
    var (
    	testServices = []*model.Service{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/imports.go

    				if impspec.Comment != nil {
    					delcomments = append(delcomments, impspec.Comment)
    				}
    				for _, cg := range f.Comments {
    					// Found comment on the same line as the import spec.
    					if cg.End() < impspec.Pos() && fset.Position(cg.End()).Line == fset.Position(impspec.Pos()).Line {
    						delcomments = append(delcomments, cg)
    						break
    					}
    				}
    
    				spec := gen.Specs[0].(*ast.ImportSpec)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 21:56:21 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  9. pilot/pkg/xds/proxy_dependencies_test.go

    				Attributes: model.ServiceAttributes{
    					ExportTo:  sets.New(visibility.Public),
    					Namespace: nsName,
    				},
    			},
    		},
    	})
    	gateway.SetSidecarScope(cg.PushContext())
    
    	// service visibility updated
    	cg = core.NewConfigGenTest(t, core.TestOptions{
    		Services: []*model.Service{
    			{
    				Hostname: svcName,
    				Attributes: model.ServiceAttributes{
    					ExportTo:  sets.New(visibility.Public),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    	// guaranteed to be in order of appearance.
    	for _, cg := range fileComments {
    		if cg.Pos() < fn.Pos() {
    			continue
    		} else if cg.End() > fn.End() {
    			break
    		}
    
    		isOutput := outputRe.MatchString(cg.Text())
    		if isOutput {
    			numOutputs++
    		}
    
    		commentsInExample = append(commentsInExample, commentMetadata{
    			isOutput: isOutput,
    			pos:      cg.Pos(),
    		})
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top