Skip to content

Commit

Permalink
fix(action): Add validation for Kustomize Build Options white space (#…
Browse files Browse the repository at this point in the history
…16704)

Signed-off-by: Sergey Lanzman <[email protected]>
  • Loading branch information
sergeylanzman authored Jan 21, 2024
1 parent 7302a52 commit 397063f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/kustomize/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func (k *kustomize) Build(opts *v1alpha1.ApplicationSourceKustomize, kustomizeOp
}

func parseKustomizeBuildOptions(path, buildOptions string) []string {
return append([]string{"build", path}, strings.Split(buildOptions, " ")...)
return append([]string{"build", path}, strings.Fields(buildOptions)...)
}

var KustomizationNames = []string{"kustomization.yaml", "kustomization.yml", "Kustomization"}
Expand Down

0 comments on commit 397063f

Please sign in to comment.