Skip to content

Commit

Permalink
skip build passed in (#3528)
Browse files Browse the repository at this point in the history
  • Loading branch information
balopat authored and dgageot committed Jan 18, 2020
1 parent 8fed83d commit 0b8bd59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/skaffold/initializer/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func DoInit(ctx context.Context, out io.Writer, c Config) error {
force: c.Force,
enableJibInit: c.EnableJibInit,
enableBuildpackInit: c.EnableBuildpackInit,
skipBuild: c.SkipBuild,
}

if err := a.walk(rootDir); err != nil {
Expand Down Expand Up @@ -215,6 +216,7 @@ type analysis struct {
force bool
enableJibInit bool
enableBuildpackInit bool
skipBuild bool

potentialConfigs []string
foundBuilders []InitBuilder
Expand Down Expand Up @@ -277,5 +279,5 @@ func (a *analysis) walk(dir string) error {
return nil
}

return searchConfigsAndBuilders(dir, true)
return searchConfigsAndBuilders(dir, !a.skipBuild)
}
2 changes: 1 addition & 1 deletion pkg/skaffold/initializer/kubectl/kubectl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/GoogleContainerTools/skaffold/testutil"
)

func TestGenerateKubeCtlPipeline(t *testing.T) {
func TestGenerateKubectlPipeline(t *testing.T) {
tmpDir, delete := testutil.NewTempDir(t)
defer delete()

Expand Down

0 comments on commit 0b8bd59

Please sign in to comment.