refactor: upgrade deploy image if client version is incompatibility with image tag (#470)

This commit is contained in:
naison
2025-03-14 20:52:22 +08:00
committed by GitHub
parent a70ce62762
commit 77570575ca
9 changed files with 704 additions and 252 deletions

View File

@@ -8,7 +8,6 @@ import (
"os/exec"
"reflect"
"runtime"
"strings"
"sync"
"testing"
"time"
@@ -324,11 +323,7 @@ func server(port int) {
func kubevpnConnect(t *testing.T) {
cmd := exec.Command("kubevpn", "proxy", "--debug", "deployments/reviews")
check := func(log string) bool {
line := "+" + strings.Repeat("-", len(log)-2) + "+"
t.Log(line)
t.Log(log)
t.Log(line)
t.Log("\n")
t.Log(util.PrintStr(log))
return false
}
stdout, stderr, err := util.RunWithRollingOutWithChecker(cmd, check)