Changed kibishii wait commands to output stdout/stderr, makes for better debugging (#3762)

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
This commit is contained in:
David L. Smith-Uchida
2021-05-10 09:30:41 -04:00
committed by GitHub
parent fc8569e9f0
commit 4d173d725c
+5
View File
@@ -15,6 +15,7 @@ package e2e
import (
"fmt"
"os"
"os/exec"
"strconv"
"time"
@@ -45,6 +46,8 @@ func installKibishii(ctx context.Context, namespace string, cloudPlatform string
kibishiiSetWaitCmd := exec.CommandContext(ctx, "kubectl", "rollout", "status", "statefulset.apps/kibishii-deployment",
"-n", namespace, "-w", "--timeout=30m")
kibishiiSetWaitCmd.Stdout = os.Stdout
kibishiiSetWaitCmd.Stderr = os.Stderr
_, _, err = veleroexec.RunCommand(kibishiiSetWaitCmd)
if err != nil {
@@ -53,6 +56,8 @@ func installKibishii(ctx context.Context, namespace string, cloudPlatform string
fmt.Printf("Waiting for kibishii jump-pad pod to be ready\n")
jumpPadWaitCmd := exec.CommandContext(ctx, "kubectl", "wait", "--for=condition=ready", "-n", namespace, "pod/jump-pad")
jumpPadWaitCmd.Stdout = os.Stdout
jumpPadWaitCmd.Stderr = os.Stderr
_, _, err = veleroexec.RunCommand(jumpPadWaitCmd)
if err != nil {
return errors.Wrapf(err, "Failed to wait for ready status of pod %s/%s", namespace, jumpPadPod)