Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for NewEnvironment (0.17 sec)

  1. pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go

    			Nanos:   1,
    		},
    		LocalityLbSetting: &networking.LocalityLoadBalancerSetting{
    			Distribute: distribute,
    		},
    	}
    
    	configStore := memory.Make(collections.Pilot)
    
    	env := model.NewEnvironment()
    	env.ServiceDiscovery = serviceDiscovery
    	env.ConfigStore = configStore
    	env.Watcher = mesh.NewFixedWatcher(meshConfig)
    
    	pushContext := model.NewPushContext()
    	env.Init()
    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. pkg/test/framework/suite.go

    	// Get the EnvironmentFactory.
    	environmentFactory := s.envFactory
    	if environmentFactory == nil {
    		environmentFactory = settings.EnvironmentFactory
    	}
    	if environmentFactory == nil {
    		environmentFactory = newEnvironment
    	}
    
    	if err := configureLogging(); err != nil {
    		return err
    	}
    
    	scopes.Framework.Infof("=== Test Framework Settings ===")
    	scopes.Framework.Info(settings.String())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/fake.go

    	configController, _ := configaggregate.MakeWriteableCache(controllers, cc)
    
    	m := opts.MeshConfig
    	if m == nil {
    		m = mesh.DefaultMeshConfig()
    	}
    
    	env := model.NewEnvironment()
    	env.Watcher = mesh.NewFixedWatcher(m)
    
    	xdsUpdater := opts.XDSUpdater
    	if xdsUpdater == nil {
    		xdsUpdater = model.NewEndpointIndexUpdater(env.EndpointIndex)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. pilot/pkg/model/push_context_test.go

    				t.Errorf("WasmPlugins did not match expectations\n\ngot: %v\n\nexpected: %v", result, tc.expectedExtensions)
    			}
    		})
    	}
    }
    
    func TestServiceIndex(t *testing.T) {
    	g := NewWithT(t)
    	env := NewEnvironment()
    	env.ConfigStore = NewFakeStore()
    	env.ServiceDiscovery = &localServiceDiscovery{
    		services: []*Service{
    			{
    				Hostname: "svc-unset",
    				Ports:    allPorts,
    				Attributes: ServiceAttributes{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  5. pilot/test/xds/fake.go

    	m := opts.MeshConfig
    	if m == nil {
    		m = mesh.DefaultMeshConfig()
    	}
    
    	// Init with a dummy environment, since we have a circular dependency with the env creation.
    	s := xds.NewDiscoveryServer(model.NewEnvironment(), map[string]string{})
    	// Disable debounce to reduce test times
    	s.DebounceOptions.DebounceAfter = opts.DebounceTime
    	// Setup time to Now instead of process start to make logs not misleading
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/gateway/deploymentcontroller_test.go

    			kclient.NewWriteClient[*k8sbeta.GatewayClass](client).Create(customClass)
    			kclient.NewWriteClient[*k8sbeta.Gateway](client).Create(tt.gw.DeepCopy())
    			stop := test.NewStop(t)
    			env := model.NewEnvironment()
    			env.PushContext().ProxyConfigs = tt.pcs
    			tw := revisions.NewTagWatcher(client, "")
    			go tw.Run(stop)
    			d := NewDeploymentController(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/accesslog_test.go

    				{
    					Providers: []*tpb.ProviderRef{
    						{
    							Name: "envoy",
    						},
    					},
    					Disabled: wrapperspb.Bool(true),
    				},
    			},
    		},
    	})
    
    	env := model.NewEnvironment()
    	env.ServiceDiscovery = serviceDiscovery
    	env.ConfigStore = configStore
    	env.Watcher = mesh.NewFixedWatcher(meshConfig)
    
    	pushContext := model.NewPushContext()
    	env.Init()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  8. pilot/pkg/model/context.go

    	Router       = pm.Router
    	Waypoint     = pm.Waypoint
    	Ztunnel      = pm.Ztunnel
    
    	IPv4 = pm.IPv4
    	IPv6 = pm.IPv6
    	Dual = pm.Dual
    )
    
    var _ mesh.Holder = &Environment{}
    
    func NewEnvironment() *Environment {
    	var cache XdsCache
    	if features.EnableXDSCaching {
    		cache = NewXdsCache()
    	} else {
    		cache = DisabledCache{}
    	}
    	return &Environment{
    		pushContext:   NewPushContext(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  9. pilot/pkg/bootstrap/server.go

    			fn()
    			return nil
    		})
    	}
    }
    
    // NewServer creates a new Server instance based on the provided arguments.
    func NewServer(args *PilotArgs, initFuncs ...func(*Server)) (*Server, error) {
    	e := model.NewEnvironment()
    	e.DomainSuffix = args.RegistryOptions.KubeOptions.DomainSuffix
    	e.SetLedger(buildLedger(args.RegistryOptions))
    
    	ac := aggregate.NewController(aggregate.Options{
    		MeshHolder: e,
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  10. maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

    OS_NAME = os.name; protected static final String WINDOWS = Windows; private String shell; private java.util.Vector shellArgs; protected String executable; protected java.util.Vector arguments; protected java.util.Vector envVars; private boolean newEnvironment; private java.io.File workingDir; public void Commandline(String); public void Commandline(); private void setDefaultShell(); public Commandline$Argument createArgument(); public Commandline$Argument createArgument(boolean); public void setExecutable(String);...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Oct 16 20:15:40 UTC 2007
    - 164.6K bytes
    - Viewed (0)
Back to top