Skip to content

[FEATURE_REQUEST] Resources check that limits are compatible with requests. #947

@robross0606

Description

@robross0606

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions