From 9f73341271a123314a1ad53c572a1df5a736ea5c Mon Sep 17 00:00:00 2001 From: ryane Date: Thu, 25 Oct 2018 09:56:46 -0400 Subject: [PATCH] kustomize build loads transformer configs when path argument omitted --- pkg/commands/build/build.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/commands/build/build.go b/pkg/commands/build/build.go index a8e66ee43..11b9c9788 100644 --- a/pkg/commands/build/build.go +++ b/pkg/commands/build/build.go @@ -96,9 +96,9 @@ func (o *buildOptions) Validate(args []string, p string, fs fs.FileSystem) error } if len(args) == 0 { o.kustomizationPath = "./" - return nil + } else { + o.kustomizationPath = args[0] } - o.kustomizationPath = args[0] if p == "" { return nil