Skip to content

Commit

Permalink
Merge pull request #224 from mflendrich/fix-223
Browse files Browse the repository at this point in the history
No longer treat dirs as kustomization files
  • Loading branch information
stefanprodan authored Jan 4, 2021
2 parents 072cd12 + af35870 commit 428493f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/kustomization_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (kg *KustomizeGenerator) generateKustomization(dirPath string) error {
// If a sub-directory contains an existing kustomization file add the
// directory as a resource and do not decend into it.
for _, kfilename := range konfig.RecognizedKustomizationFileNames() {
if fs.Exists(filepath.Join(path, kfilename)) {
if kpath := filepath.Join(path, kfilename); fs.Exists(kpath) && !fs.IsDir(kpath) {
paths = append(paths, path)
return filepath.SkipDir
}
Expand Down

0 comments on commit 428493f

Please sign in to comment.