Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
look into this conditional:
if intValue < 0 { return nil, fmt.Errorf("negative resources not permitted: %v", configMap) }
This will never be used because regrex defined here. not including "-" as a starting char
Thus, it will never omit error about negative resource, instead it will raise invalid quantity error at https://github.com/apache/yunikorn-core/blob/55e9fe650760bdf30d27a7ecf85b34d5f96c492f/pkg/common/resources/quantity.go#L74 .
Attachments
Issue Links
- links to