Skip to content

Commit

Permalink
Merge pull request #591 from kubeshop/f1ames/fix/helm-paths-check
Browse files Browse the repository at this point in the history
Helm paths check
  • Loading branch information
f1ames authored Dec 13, 2023
2 parents 51ce38d + 74c0a7c commit 743efcd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/odd-papayas-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@monokle/parser": patch
---

Support Windows separator in helm path checks
5 changes: 4 additions & 1 deletion packages/parser/src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export function hasHelmTemplateContent(file: BaseFile) {
}

function isHelmTemplateLike(file: BaseFile): boolean {
return file.path.includes('/templates/') || file.path.startsWith('templates/');
return file.path.includes('/templates/') ||
file.path.includes('\\templates\\') ||
file.path.startsWith('templates/') ||
file.path.startsWith('templates\\')
}

const HELM_VALUES_REGEX = /values[^\/|\\]*.(yaml|yml)/;
Expand Down

0 comments on commit 743efcd

Please sign in to comment.