Comments (5)
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.
I'd like to implement this feature if possible.
from kube-linter.
Hi @nirav24, thanks for filing the issue. We already have a couple of options that support this:
- 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.)
- 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.
Does this answer your question?
from kube-linter.
- 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)
- [BUG] Some releases are not published on pkg.go.dev HOT 1
- [BUG]: annotation `ignore-check.kube-linter.io/access-to-secrets` does not work HOT 1
- [BUG] failed to decode: no kind "Pipeline" is registered for version "tekton.dev/v1beta1" HOT 1
- [FEATURE_REQUEST] Support HPA maxReplicas HOT 2
- [FEATURE_REQUEST] Support Restart Policy
- [BUG] Linter reporting a low number of replicas for deployments with PDB and HPA minReplicas HOT 4
- Golang Plugins for kube-linter HOT 5
- [FEATURE_REQUEST] Add OpenShift SecurityContextConstraints
- [FEATURE_REQUEST] Explicit check for `securityContext.allowPrivilegeEscalation=false` on containers
- [Bug] no pods found matching service labels
- [BUG] Release assets name HOT 1
- [FEATURE_REQUEST] Common target platforms (ie: linux/arm64)
- Change unset-cpu-requirements check
- Change unset-memory-requirements check
- [BUG] - since v0.6.6 linting from stdin doesn't work anymore with the command: kube-linter lint -
- [FEATURE_REQUEST] EnvVar ValueFrom checks
- [FEATURE_REQUEST] Merge arbitrary values.yaml when checking a helm chart
- [BUG] - service has no selector specified raised when using Endpoint
- [FEATURE_REQUEST] Expand `run-as-non-root` template to verify `runAsGroup` field is nonzero.
- Include line and column number ranges for errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-linter.