Linter doesn't work on a multi object file
See original GitHub issueI was working with my YAML object files and previously I have every single object in a separated file and I recently noticed that for a “Deployment” object file I have the following linting warning:
One or more containers do not have resource limits - this could starve other processes
Before fixing that issue, I decided to refactor my object definition a bit and define more than one object in a single file if they are related. So now I have the same Deployment as before along with a Volume Claim and a Service, everything in the same file.
But then I noted that the linting warning doesn’t show up for the Deployment, but it does show up if I delete the Service and Volume Claim from the file, leaving the Deployment alone.
So I suppose the linting code is not taking into account the possibility of having many objects definition per file.
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7
Top GitHub Comments
That would be great if there was a way to disable this warning. I don’t want to enable cpu limits due to their non-intuitive behavior and having my half yaml file underlined in yellow degrades usability.
I still see this issue.