- Consolidate DialRemote/DialTunnel common logic into buildResources + dialEnv interface - Remove strict capability check that prevented ConnResources creation for host-exec-only nodes - Merge gRPC-discovered capabilities with registration-declared capabilities in DialTunnel - Replace requireKubeConfig hard-fail with graceful skip when kubeconfig is absent - Introduce tai/types package for shared Ports/Capabilities/SystemInfo/AuthInfo/NodeMeta - Add tai/conn.go (ConnResources) and tai/dial.go (DialRemote/DialTunnel/DialLocal) - Rename tai/sandbox → tai/runtime for clarity - Update sandbox/v2, workspace, agent/sandbox/v2 test utilities for build-tag isolation Made-with: Cursor
17 lines
312 B
Go
17 lines
312 B
Go
//go:build remote
|
|
|
|
package sandboxv2_test
|
|
|
|
import "os"
|
|
|
|
func init() {
|
|
extraNodeProviders = append(extraNodeProviders, agentRemoteNodes)
|
|
}
|
|
|
|
func agentRemoteNodes() []nodeConfig {
|
|
addr := os.Getenv("SANDBOX_TEST_REMOTE_ADDR")
|
|
if addr == "" {
|
|
return nil
|
|
}
|
|
return []nodeConfig{{Name: "remote", Addr: addr}}
|
|
}
|