Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GoogleCloudPlatform/k8s-container…
Browse files Browse the repository at this point in the history
…-builder into env-replacement
  • Loading branch information
Priya Wadhwa committed Mar 26, 2018
2 parents dbb0774 + d9c3104 commit f6139f2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ test: out/executor out/kbuild
.PHONY: integration-test
integration-test: out/executor out/kbuild
@ ./integration-test.sh

.PHONY: images
images: out/executor out/kbuild
docker build -t $(REGISTRY)/executor:latest -f deploy/Dockerfile .
File renamed without changes.
3 changes: 2 additions & 1 deletion integration_tests/integration_test_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package main

import (
"fmt"

"gopkg.in/yaml.v2"
)

Expand Down Expand Up @@ -116,7 +117,7 @@ func main() {
// Build executor image
buildExecutorImage := step{
Name: dockerImage,
Args: []string{"build", "-t", executorImage, "-f", "integration_tests/executor/Dockerfile", "."},
Args: []string{"build", "-t", executorImage, "-f", "deploy/Dockerfile", "."},
}
y := testyaml{
Steps: []step{containerDiffStep, containerDiffPermissions, structureTestsStep, structureTestPermissions, buildExecutorImage},
Expand Down
1 change: 0 additions & 1 deletion pkg/commands/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ type EnvCommand struct {

func (e *EnvCommand) ExecuteCommand(config *manifest.Schema2Config) error {
logrus.Info("cmd: ENV")

envString := envToString(e.cmd)
newEnvs := e.cmd.Env
for index, pair := range newEnvs {
Expand Down
4 changes: 2 additions & 2 deletions pkg/commands/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func Test_EnvExecute(t *testing.T) {
},
{
Key: "$path",
Value: "$home",
Value: "$home/",
},
},
},
Expand All @@ -103,7 +103,7 @@ func Test_EnvExecute(t *testing.T) {
"path=/some/path",
"home=/root",
"HOME=/root",
"/usr/=/root",
"/usr/=/root/",
}
err := envCmd.ExecuteCommand(cfg)
testutil.CheckErrorAndDeepEqual(t, false, err, expectedEnvs, cfg.Env)
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/command_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func ResolveEnvironmentReplacementList(command string, values, envs []string, is
var resolvedValues []string
for _, value := range values {
resolved, err := ResolveEnvironmentReplacement(command, value, envs, isFilepath)
logrus.Infof("Resolved %s to %s", value, resolved)
logrus.Debugf("Resolved %s to %s", value, resolved)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f6139f2

Please sign in to comment.