Skip to content

Commit

Permalink
No longer treat dirs as kustomization files.
Browse files Browse the repository at this point in the history
Fixes fluxcd#223

Signed-off-by: Michał Flendrich <michal@flendrich.pro>
  • Loading branch information
mflendrich committed Dec 24, 2020
1 parent 072cd12 commit af35870
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 af35870

Please sign in to comment.