Description of the problem/feature request
While there are existing checks to flag if limits and requests are set for cpu and/or memory, there does not appear to be a check to see if the values specified for limits are compatible with the values set for requests.
Description of the existing behavior vs. expected behavior
This could lead to the following example YAML which seems like it would pass linting:
resources:
limits:
cpu: 100m
memory: 512Mi
requests:
cpu: 100m
memory: 1Gi
But yields this error upon deployment:
Invalid value: "1Gi": must be less than or equal to memory limit of 512Mi