Skip to content

[FEATURE_REQUEST] Invalid memory limit #189

@noahlz

Description

@noahlz

Description of the problem/feature request
We are evaluating kube-linter to address a recent error we experienced. We deployed a pod with an invalid memory limit:

          resources:
            limits:
              cpu: 500m
              memory: 3500m

Note 3500m instead of 3500M

Description of the existing behavior vs. expected behavior

We expected kube-linter to flag the invalid resource memory limit. Per the documentation for this setting:

https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

The memory resource is measured in bytes. You can express memory as a plain integer or a fixed-point integer with one of these suffixes: E, P, T, G, M, K, Ei, Pi, Ti, Gi, Mi, Ki.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions