diff --git a/util/kustomize/kustomize.go b/util/kustomize/kustomize.go index b6c0ff1788ca9..91d64cad79a15 100644 --- a/util/kustomize/kustomize.go +++ b/util/kustomize/kustomize.go @@ -296,6 +296,12 @@ func (k *kustomize) Build(opts *v1alpha1.ApplicationSourceKustomize, kustomizeOp } } + directory, err := os.Getwd() //get the current directory using the built-in function + if err != nil { + fmt.Println(err) //print the error if obtained + } + fmt.Println("Current working directory:", directory) + var cmd *exec.Cmd if kustomizeOptions != nil && kustomizeOptions.BuildOptions != "" { params := parseKustomizeBuildOptions(k.path, kustomizeOptions.BuildOptions)