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

Most upvoted comments

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 worked

VirtualBox_Windows 7 Ultimate_19_09_2019_10_48_20

Same 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?