- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for NewAgent (0.17 sec)
-
pkg/envoy/agent_test.go
return nil } // TestStartExit starts a proxy and ensures the agent exits once the proxy exits func TestStartExit(t *testing.T) { ctx := context.Background() done := make(chan struct{}) a := NewAgent(TestProxy{}, 0, 0, "", 0, 0, 0, true) go func() { a.Run(ctx) done <- struct{}{} }() <-done } // TestStartTwiceStop applies three configs and validates that cleanups are called in order
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Oct 19 20:22:09 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/envoy/agent.go
) var errAbort = errors.New("proxy aborted") const errOutOfMemory = "signal: killed" var activeConnectionCheckDelay = 1 * time.Second // NewAgent creates a new proxy agent for the proxy start-up and clean-up functions. func NewAgent(proxy Proxy, terminationDrainDuration, minDrainDuration time.Duration, localhost string, adminPort, statusPort, prometheusPort int, exitOnZeroActiveConnections bool, ) *Agent {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 24 16:04:22 UTC 2024 - 9K bytes - Viewed (0) -
pkg/istio-agent/agent.go
} // NewAgent hosts the functionality for local SDS and XDS. This consists of the local SDS server and // associated clients to sign certificates (when not using files), and the local XDS proxy (including // health checking for VMs and DNS proxying).
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 05 10:02:56 UTC 2024 - 26.7K bytes - Viewed (0) -
pilot/cmd/pilot-agent/app/cmd.go
Sidecar: proxyArgs.Type == model.SidecarProxy, OutlierLogPath: proxyArgs.OutlierLogPath, } agentOptions := options.NewAgentOptions(&proxyArgs, proxyConfig, sds) agent := istioagent.NewAgent(proxyConfig, agentOptions, secOpts, envoyOptions) ctx, cancel := context.WithCancel(context.Background()) defer cancel() defer agent.Close() // If a status port was provided, start handling status probes.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 11.9K bytes - Viewed (0) -
pkg/istio-agent/xds_proxy_test.go
MetadataClientCertKey: path.Join(env.IstioSrc, "tests/testdata/certs/pilot/key.pem"), MetadataClientRootCert: path.Join(env.IstioSrc, "tests/testdata/certs/pilot/root-cert.pem"), } dir := t.TempDir() ia := NewAgent(proxyConfig, &AgentOptions{ XdsUdsPath: filepath.Join(dir, "XDS"), DownstreamGrpcOptions: opts, }, secOpts, envoy.ProxyConfig{TestOnly: true}) t.Cleanup(func() { ia.Close() })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 04:48:02 UTC 2024 - 18.6K bytes - Viewed (0) -
pkg/istio-agent/agent_test.go
t.Cleanup(func() { _ = os.RemoveAll(dir) }) }) t.Run("Unhealthy SDS socket - required", func(t *testing.T) { // starting an unresponsive listener on the socket a := NewAgent(nil, &AgentOptions{UseExternalWorkloadSDS: true}, nil, envoy.ProxyConfig{}) ctx, done := context.WithCancel(context.Background()) _, err := a.Run(ctx) if err == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 33.4K bytes - Viewed (0)