helm: helm lint misses bad chart names

helm lint only catches if a chart name is missing. You can see that in the following snippet…

https://github.com/helm/helm/blob/292368a64d6c9794b4573afa5a8dc6e940a21045/pkg/lint/rules/chartfile.go#L106-L111

The chartutil package has the ability to validate names in some forms. We could provide better hints (like no capital letters) via lint.

Output of helm version: 3.7

Output of kubectl version: N/A

Cloud Provider/Platform (AKS, GKE, Minikube etc.): N/A

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

This issue is definitely not closed. We had a big issue finding out that a dot in the chart name causes an issue in the variable resolver for sub charts even helm lint and all does not show any issue.

I don’t think we need to try to figure out every way someone might have incorrectly done a name. If it doesn’t match the correct pattern then we can tell them the pattern it needs to fit.