Devfile validation does not verify that resource requests are less than resource limits. #672
Labels
area/api
Enhancement or issue related to the api/devfile specification
area/library
Common devfile library for interacting with devfiles
kind/bug
Something isn't working
/kind bug
Which area this bug is related to?
/area library
What versions of software are you using?
Operating System:
N/A
Go Pkg Version:
N/A
Bug Summary
In a pod, having either a CPU or memory request that is greater than the specified limit is an invalid configuration. The validation package in devfile/api does not detect this error, so it's on downstream users to either detect it or submit an invalid object to the cluster.
To Reproduce:
The devfile below passes validation:
Expected behavior
Validation should fail with a message specifying the discrepancy.
Additional context
Originally reported in eclipse-che/che#20751
The text was updated successfully, but these errors were encountered: