« 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__ | ||