diff --git a/test/e2e_node/gke_environment_test.go b/test/e2e_node/gke_environment_test.go index 0b1c95c348..dd88976b39 100644 --- a/test/e2e_node/gke_environment_test.go +++ b/test/e2e_node/gke_environment_test.go @@ -139,10 +139,10 @@ func checkDockerConfig() error { if _, err := os.Stat(bin); os.IsNotExist(err) { continue } - output, err := runCommand(bin) - if err != nil { - return err - } + // We don't check the return code because it's OK if the script returns + // a non-zero exit code just because the configs in the whitelist are + // missing. + output, _ := runCommand(bin) for _, line := range strings.Split(output, "\n") { if !strings.Contains(line, "missing") { continue