Skip to content

Commit

Permalink
feat: stop setup namespace for kustomize in all the cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Oct 3, 2023
1 parent 400fa73 commit 4c2d82e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions util/kustomize/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,7 @@ func (k *kustomize) Build(opts *v1alpha1.ApplicationSourceKustomize, kustomizeOp
}

env = append(env, environ...)

if namespace != "" {
cmd := exec.Command(k.getBinaryPath(), "edit", "set", "namespace", "--", namespace)
cmd.Dir = k.path
_, err := executil.Run(cmd)
if err != nil {
return nil, nil, err
}
}


if opts != nil {
if opts.ForceNamespace && namespace != "" {
cmd := exec.Command(k.getBinaryPath(), "edit", "set", "namespace", "--", namespace)
Expand Down

0 comments on commit 4c2d82e

Please sign in to comment.