Skip to content

Commit

Permalink
Merge pull request #4004 from Shopify/no-valgrind
Browse files Browse the repository at this point in the history
Remove valgrind
  • Loading branch information
k8s-ci-robot authored Apr 14, 2019
2 parents ce41816 + ae59282 commit 4c37e0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion images/nginx/rootfs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ clean-install \
libmaxminddb-dev \
dumb-init \
gdb \
valgrind \
bc \
|| exit 1

Expand Down
15 changes: 0 additions & 15 deletions internal/ingress/controller/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package controller

import (
"fmt"
"os"
"os/exec"
"syscall"

Expand Down Expand Up @@ -80,23 +79,9 @@ const (
cfgPath = "/etc/nginx/nginx.conf"
)

var valgrind = []string{
"--tool=memcheck",
"--leak-check=full",
"--show-leak-kinds=all",
"--leak-check=yes",
}

func nginxExecCommand(args ...string) *exec.Cmd {
cmdArgs := []string{}

if os.Getenv("RUN_WITH_VALGRIND") == "true" {
cmdArgs = append(cmdArgs, valgrind...)
cmdArgs = append(cmdArgs, defBinary, "-c", cfgPath)
cmdArgs = append(cmdArgs, args...)
return exec.Command("valgrind", cmdArgs...)
}

cmdArgs = append(cmdArgs, "-c", cfgPath)
cmdArgs = append(cmdArgs, args...)
return exec.Command(defBinary, cmdArgs...)
Expand Down

0 comments on commit 4c37e0e

Please sign in to comment.