lib/IO/K8s/Api/Resource/V1beta2/NodeAllocatableMapping.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/NetworkDeviceData.pm ↑ Summary lib/IO/K8s/Api/Resource/V1beta2/NodeAllocatableOverhead.pm »
1 package IO::K8s::Api::Resource::V1beta2::NodeAllocatableMapping;
2 # ABSTRACT: NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.
3 2 our $VERSION = '1.112';
4 2 ▶use IO::K8s::Resource;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 k8s capacityKey => Str;
7  
8  
9 2 k8s capacityMultiplier => Quantity;
10  
11  
12 2 k8s deviceMultiplier => Quantity;
13  
14  
15 2 1;
16  
17 __END__
« lib/IO/K8s/Api/Resource/V1beta2/NetworkDeviceData.pm ↑ Summary lib/IO/K8s/Api/Resource/V1beta2/NodeAllocatableOverhead.pm »