feat: split connect into connect and proxy

This commit is contained in:
fengcaiwen
2023-03-10 18:54:01 +08:00
parent 0d7f78f8ae
commit caeaab9ba2
10 changed files with 184 additions and 54 deletions

View File

@@ -264,7 +264,7 @@ func server(port int) {
func kubevpnConnect(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Hour)
cmd := exec.CommandContext(context.Background(), "kubevpn", "connect", "--debug", "--workloads", "deployments/reviews")
cmd := exec.CommandContext(context.Background(), "kubevpn", "proxy", "deployments/reviews", "--debug")
go func() {
var checker = func(log string) {
if strings.Contains(log, "dns service ok") {