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