« lib/IO/K8s/Api/Resource/V1beta2/CapacityRequestPolicy.pm
↑ Summary
lib/IO/K8s/Api/Resource/V1beta2/CapacityRequirements.pm »
| 1 | package IO::K8s::Api::Resource::V1beta2::CapacityRequestPolicyRange; | ||
| 2 | # ABSTRACT: CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. | ||
| 3 | 2 | our $VERSION = '1.112'; | |
| 4 | 2 | ▶ | use IO::K8s::Resource; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | k8s max => Quantity; | |
| 7 | |||
| 8 | |||
| 9 | 2 | k8s min => Quantity, 'required'; | |
| 10 | |||
| 11 | |||
| 12 | 2 | k8s step => Quantity; | |
| 13 | |||
| 14 | |||
| 15 | 2 | 1; | |
| 16 | |||
| 17 | __END__ | ||