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

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
pull/3784/head
David L. Smith-Uchida 2021-05-10 06:30:41 -07:00 committed by GitHub
parent fc8569e9f0
commit 4d173d725c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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)