digitalocean / clusterlint

A best practices checker for Kubernetes clusters. 🤠
Apache License 2.0
547 stars 45 forks source link

Subcommand to lint manifests before they are deployed onto a cluster #81

Open varshavaradarajan opened 4 years ago

varshavaradarajan commented 4 years ago

Right now, clusterlint analyzes the workloads after they have been deployed on a managed/self hosted platform. This is great because:

Adding a feature to lint the manifests before attempting to deploy the workloads on a cluster can be useful to prevent bad configs. This will be particularly useful if there is CI/CD in place to automatically deploy the workloads after making sure that all the configs are fine. This can act as a sanity check before the config is merged in a SCM repository.

webdz9r commented 2 years ago

I came here just for this suggestion. Any thoughts?

sundowndev commented 1 year ago

Hey @varshavaradarajan, I'd like to work on this!

Should it be a subcommand of run ? Like clusterlint run manifest -f ./nginx.yaml

varshavaradarajan commented 1 year ago

Hi @sundowndev ! Thanks for your interest! To be honest, I'm not sure if clusterlint should support this. We haven't had feature requests on this issue and there are tons of yaml linting tools that can be used in the CI.