From f0c498ff54b3fb5acb6b510216207a2edc5baf9c Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Wed, 5 Apr 2023 16:33:34 +0300 Subject: [PATCH] Add support for .sourceignore to flux build/diff Signed-off-by: Stefan Prodan --- internal/build/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/build/build.go b/internal/build/build.go index 0f2f1ca4..dd09594a 100644 --- a/internal/build/build.go +++ b/internal/build/build.go @@ -326,7 +326,7 @@ func (b *Builder) generate(kustomization kustomizev1.Kustomization, dirPath stri if err != nil { return "", err } - gen := kustomize.NewGenerator("", unstructured.Unstructured{Object: data}) + gen := kustomize.NewGeneratorWithIgnore("", "", unstructured.Unstructured{Object: data}) // acuire the lock b.mu.Lock()