migtools / mig-controller

OpenShift Migration Controller
Apache License 2.0
22 stars 42 forks source link

Bug 2044982: Fix limitrange calculations for nil values #1258

Closed pranavgaikwad closed 2 years ago

pranavgaikwad commented 2 years ago

The kubernetes ResourceList has helper functions that return a 0 value even if the ResourceList value is "not set". So "nil" checks for ResourceList are really useless. This PR removes the usage of helper functions and uses underlying maps directly to determine whether the value is set or not.

github-actions[bot] commented 2 years ago

Valid bug 2044982