- 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
20 lines
516 B
Go
20 lines
516 B
Go
//go:build wintest
|
|
|
|
package sandboxv2_test
|
|
|
|
import "os"
|
|
|
|
func init() {
|
|
extraHostExecProviders = append(extraHostExecProviders, agentWinHostExec)
|
|
}
|
|
|
|
func agentWinHostExec() []hostTarget {
|
|
var targets []hostTarget
|
|
if addr := os.Getenv("TAI_TEST_WIN_HOSTEXEC_LINUX"); addr != "" {
|
|
targets = append(targets, hostTarget{Name: "win-linux", Addr: addr})
|
|
}
|
|
if addr := os.Getenv("TAI_TEST_WIN_HOSTEXEC_NATIVE"); addr != "" {
|
|
targets = append(targets, hostTarget{Name: "win-native", Addr: addr})
|
|
}
|
|
return targets
|
|
}
|