lib/IO/K8s/Api/Resource/V1beta2/CapacityRequestPolicyRange.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« 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__
« lib/IO/K8s/Api/Resource/V1beta2/CapacityRequestPolicy.pm ↑ Summary lib/IO/K8s/Api/Resource/V1beta2/CapacityRequirements.pm »