Comments (6)
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.
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
I do kube-linter lint .
I checks the yaml file like it usually do.
from kube-linter.
@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.
@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.
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.
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)
- [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 HOT 1
- [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. HOT 1
- Include line and column number ranges for errors HOT 1
- [FEATURE_REQUEST] Need check for priorityClassName value
- [FEATURE_REQUEST] arm64 Docker image
- [FEATURE_REQUEST] New ObjectKind and Template for PersistentVolumeClaim and volumeClaimTemplates
- [BUG] no-rolling-update-strategy does not account for the default Strategy being RollingUpdate
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.