helm: YAML validation error on Windows
Output of helm version:
:“v2.14.3”
Hello i am having problem linting my helm charts. Lint works properly on linux and is giving proper error when first line of my deployment is
apiVersion apps/v1
it should be apiVersion: apps/v1
However on windows systems linting of such a chart is passing saying chart is okey. Any fast help on this topic ?
Even if i change first line to
apiVerscion, asaasas apps/v1zaz
It is still saying lint ok.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 18 (12 by maintainers)
Commits related to this issue
- Fixing linting of templates on Windows When the engine stored templates in the map the keys were generated based on path and not filepath. filepath was being used in the linter when retrieving conten... — committed to mattfarina/helm by mattfarina 4 years ago
- Fixing linting of templates on Windows When the engine stored templates in the map the keys were generated based on path and not filepath. filepath was being used in the linter when retrieving conten... — committed to helm/helm by mattfarina 4 years ago
- Fixing linting of templates on Windows When the engine stored templates in the map the keys were generated based on path and not filepath. filepath was being used in the linter when retrieving conten... — committed to vladfr/helm by mattfarina 4 years ago
- Fixing linting of templates on Windows When the engine stored templates in the map the keys were generated based on path and not filepath. filepath was being used in the linter when retrieving conten... — committed to zak905/helm by mattfarina 4 years ago
Found the bug, it’s in this line https://github.com/helm/helm/blob/master/pkg/lint/rules/template.go#L109 . We populate the key with
/but try to read using\(the path separator in windows). Tried a fix and it workedSame on my computer
I am reading this bug and trying to understand, based on the title, what the error is. I think that the error is “on Windows YAML validation is not always correct”, but I can’t tell. Can someone please update the title with an informative description?