Giter VIP home page Giter VIP logo

Comments (5)

viswajithiii avatar viswajithiii commented on May 26, 2024 1

Yes, that's a good idea. I want to make it so that everything in the config (not just exclude) can be passed as command-line flags. There's a nice library for this in Go: https://github.com/spf13/viper

I've created #78 to track that, so I'm closing this issue.

Thanks again for filing it, and for using KubeLinter!

from kube-linter.

nirav24 avatar nirav24 commented on May 26, 2024

I'd like to implement this feature if possible.

from kube-linter.

viswajithiii avatar viswajithiii commented on May 26, 2024

Hi @nirav24, thanks for filing the issue. We already have a couple of options that support this:

  1. You can use the "exclude" key in the config to exclude this check: https://github.com/stackrox/kube-linter/blob/main/config.yaml.example#L22 (This sounds like what you need for your use-case.)
  2. If you want to run the check generally, but just ignore it for a specific deployment, you can use https://github.com/stackrox/kube-linter/tree/main/docs#ignoring-violations-for-specific-cases.

Down the road, we do want to provide an option to take a kubeconfig and pull objects from the server, so we can use that context when linting.

from kube-linter.

viswajithiii avatar viswajithiii commented on May 26, 2024

Does this answer your question?

from kube-linter.

nirav24 avatar nirav24 commented on May 26, 2024
  1. You can use the "exclude" key in the config to exclude this check: https://github.com/stackrox/kube-linter/blob/main/config.yaml.example#L22 (This sounds like what you need for your use-case.)

@viswajithiii thanks for the reply. The above will do for my usecase. However, do you think it would also be good idea to add flag? this will allow flexibility to utilize this function.

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.