Add additional logs

pull/8154/head
Priya Wadhwa 2020-05-15 11:34:33 -07:00
parent 50a2e83da8
commit b00ef3ae0c
1 changed files with 6 additions and 0 deletions

View File

@ -175,6 +175,12 @@ func additionalLogs(ctx context.Context, t *testing.T, profile string) {
}
t.Log(rr.Output())
rr, err = Run(t, exec.CommandContext(ctx, Target(), []string{"kubectl", "-p", profile, "--", "get", "po", "-A"}...))
if err != nil {
t.Logf("error: %q: %v", rr.Command(), err)
}
t.Log(rr.Output())
rr, err = Run(t, exec.CommandContext(ctx, Target(), []string{"kubectl", "-p", profile, "--", "logs", fmt.Sprintf("kube-controller-manager-%s", profile), "-n", "kube-system"}...))
if err != nil {
t.Logf("error: %q: %v", rr.Command(), err)