lib/IO/K8s/Api/Autoscaling/V2/HPAScalingRules.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« lib/IO/K8s/Api/Autoscaling/V2/HPAScalingPolicy.pm ↑ Summary lib/IO/K8s/Api/Autoscaling/V2/HorizontalPodAutoscaler.pm »
1 package IO::K8s::Api::Autoscaling::V2::HPAScalingRules;
2 # ABSTRACT: HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
3 3 our $VERSION = '1.112';
4 3 ▶use IO::K8s::Resource;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 k8s policies => ['Autoscaling::V2::HPAScalingPolicy'];
7  
8  
9 3 k8s selectPolicy => Str;
10  
11  
12 3 k8s stabilizationWindowSeconds => Int;
13  
14  
15 3 k8s tolerance => Quantity;
16  
17  
18 3 1;
19  
20 __END__
« lib/IO/K8s/Api/Autoscaling/V2/HPAScalingPolicy.pm ↑ Summary lib/IO/K8s/Api/Autoscaling/V2/HorizontalPodAutoscaler.pm »