lib/IO/K8s/Api/Lifecycle/V1alpha1/EvictionRequest.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/Lifecycle/V1alpha1/EvictionPodReference.pm ↑ Summary lib/IO/K8s/Api/Lifecycle/V1alpha1/EvictionRequestPodReference.pm »
1 package IO::K8s::Api::Lifecycle::V1alpha1::EvictionRequest;
2 # ABSTRACT: EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. - .spec.requester is set as a label on the Eviction for easier lookup. - Each target can have a set of responders assigned to it. Eviction objects are observed by these responders, who implement the eviction logic and update the Eviction's status with progress. There is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected.
3 3 our $VERSION = '1.112';
4 3 ▶use IO::K8s::APIObject;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 with 'IO::K8s::Role::Namespaced';
6  
7  
8 3 k8s spec => 'Lifecycle::V1alpha1::EvictionRequestSpec', 'required';
9  
10  
11 3 k8s status => 'Lifecycle::V1alpha1::EvictionRequestStatus';
12  
13  
14 3 1;
15  
16 __END__
« lib/IO/K8s/Api/Lifecycle/V1alpha1/EvictionPodReference.pm ↑ Summary lib/IO/K8s/Api/Lifecycle/V1alpha1/EvictionRequestPodReference.pm »