Skip to content

Commit

Permalink
fix: Helm OpenShift Templates can be loaded from yaml extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Jun 5, 2023
1 parent 52297f1 commit e7c059c
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -201,7 +201,9 @@ static List<Template> findTemplates(File templateDir) throws IOException {
final List<Template> ret = new ArrayList<>();
final File[] sourceFiles;
if (templateDir != null && templateDir.isDirectory()) {
sourceFiles = templateDir.listFiles((dir, filename) -> filename.endsWith("-template.yml"));
sourceFiles = templateDir.listFiles((dir, filename) ->
filename.toLowerCase(Locale.ROOT).endsWith("-template.yml") ||
filename.toLowerCase(Locale.ROOT).endsWith("-template.yaml"));
} else if (templateDir != null) {
sourceFiles = new File[] { templateDir };
} else {
Expand Down

0 comments on commit e7c059c

Please sign in to comment.