blib/lib/IO/K8s/Api/Resource/V1beta1/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
« blib/lib/IO/K8s/Api/Resource/V1beta1/CapacityRequestPolicy.pm ↑ Summary blib/lib/IO/K8s/Api/Resource/V1beta1/CapacityRequirements.pm »
1 package IO::K8s::Api::Resource::V1beta1::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 8 our $VERSION = '1.110';
4 8 ▶use IO::K8s::Resource;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 8 k8s max => Quantity;
7  
8  
9 8 k8s min => Quantity, 'required';
10  
11  
12 8 k8s step => Quantity;
13  
14  
15 8 1;
16  
17 __END__
« blib/lib/IO/K8s/Api/Resource/V1beta1/CapacityRequestPolicy.pm ↑ Summary blib/lib/IO/K8s/Api/Resource/V1beta1/CapacityRequirements.pm »