Giter VIP home page Giter VIP logo

Comments (6)

viswajithiii avatar viswajithiii commented on May 26, 2024

Hi @saiyam1814, you can run kube-linter lint <dir> where <dir> is a path to a Helm chart (ie, it contains a Chart.yaml).

I will update our documentation to make this more clear, but in the meantime, let me know if this answers your question.

from kube-linter.

saiyam1814 avatar saiyam1814 commented on May 26, 2024

I pointed to the directory but it still shows yaml errors I mean how different the helm chart check is
I have below in the repo
image
I do kube-linter lint .
I checks the yaml file like it usually do.

from kube-linter.

kreamkorokke avatar kreamkorokke commented on May 26, 2024

@saiyam1814 as of now we actually just started supporting helm, and the errors are reported on the parsed yaml files. So right now the check output will look the same for plain k8s manifests and helm.

I will make sure to communicate this with our main developer as he is out now, and thanks again for pointing this out.

from kube-linter.

viswajithiii avatar viswajithiii commented on May 26, 2024

@saiyam1814 kube-linter lint . renders the templates in the Helm chart using the values.yaml file, and runs the checks on the rendered YAMLs. The checks that are actually run are the same as the checks run on the rendered YAML files. Thus, kubelinter lint . on a Helm chart directory is functionally equivalent to something like: helm template . --output-dir /tmp/chart; kube-linter lint /tmp/chart. If kube-linter lint did not do the rendering, it would try to lint the template files directly, which would not work since they are not valid YAMLs. Does that make sense? What is the behaviour you expected to see?

Also, see #48 for some proposed improvements to our Helm support.

from kube-linter.

saiyam1814 avatar saiyam1814 commented on May 26, 2024

Thanks, I wrote a short blog the other day after kubeLinter was announced.
https://www.civo.com/learn/yaml-best-practices-using-kubelinter

from kube-linter.

viswajithiii avatar viswajithiii commented on May 26, 2024

Thanks, I wrote a short blog the other day after kubeLinter was announced.
https://www.civo.com/learn/yaml-best-practices-using-kubelinter

Thanks @saiyam1814! That is a great blog. I will add a link to it in our README. 🙂

from kube-linter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.