Open varshavaradarajan opened 4 years ago
I came here just for this suggestion. Any thoughts?
Hey @varshavaradarajan, I'd like to work on this!
Should it be a subcommand of run
? Like clusterlint run manifest -f ./nginx.yaml
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.
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.