Skip to content

Commit

Permalink
Merge pull request #106 from adrianludwin/headers
Browse files Browse the repository at this point in the history
Work around kubectl bug in 1.22 (branch)
  • Loading branch information
k8s-ci-robot authored Oct 19, 2021
2 parents b9045e4 + cd6811e commit d11833c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/testutils/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ func RunCommand(cmdln ...string) (string, error) {
prefix := fmt.Sprintf("[%d] Running: ", time.Now().Unix())
GinkgoT().Log(prefix, args)
cmd := exec.Command(args[0], args[1:]...)
// Work around https://github.com/kubernetes/kubectl/issues/1098#issuecomment-929743957:
cmd.Env = append(os.Environ(), "KUBECTL_COMMAND_HEADERS=false")
stdout, err := cmd.CombinedOutput()
return string(stdout), err
}
Expand Down

0 comments on commit d11833c

Please sign in to comment.