Skip to content

Commit

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

Signed-off-by: Sergey Lanzman <[email protected]>
  • Loading branch information
sergeylanzman authored and Julien Fuix committed Feb 6, 2024
1 parent a7e9f69 commit b2e82f3
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 b2e82f3

Please sign in to comment.