pub struct EvictionRequestSpec {
pub intent: String,
pub requester: String,
pub target: EvictionRequestTarget,
}Expand description
EvictionRequestSpec is a specification of an EvictionRequest.
Fields§
§intent: Stringintent specifies the action that should be taken for the specified target.
- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.
If all requesters’ intents are withdrawn for a common target, the eviction will be canceled.
Cancellation consequences:
- Inactive responders will never run.
- Active responders are expected to cancel the eviction.
- Completed or Interrupted responders should not take any action.
requester: Stringrequester allows you to identify the entity, that requested the eviction of the target.
It must be a valid domain-prefixed key (such as “acme.io/foo”). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable.
target: EvictionRequestTargettarget contains a reference to an object (e.g. a pod) that should be evicted. This field is required and immutable.
Trait Implementations§
Source§impl Clone for EvictionRequestSpec
impl Clone for EvictionRequestSpec
Source§impl Debug for EvictionRequestSpec
impl Debug for EvictionRequestSpec
Source§impl DeepMerge for EvictionRequestSpec
impl DeepMerge for EvictionRequestSpec
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other into self.Source§impl Default for EvictionRequestSpec
impl Default for EvictionRequestSpec
Source§impl<'de> Deserialize<'de> for EvictionRequestSpec
impl<'de> Deserialize<'de> for EvictionRequestSpec
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EvictionRequestSpec
impl PartialEq for EvictionRequestSpec
Source§impl Serialize for EvictionRequestSpec
impl Serialize for EvictionRequestSpec
impl StructuralPartialEq for EvictionRequestSpec
Auto Trait Implementations§
impl Freeze for EvictionRequestSpec
impl RefUnwindSafe for EvictionRequestSpec
impl Send for EvictionRequestSpec
impl Sync for EvictionRequestSpec
impl Unpin for EvictionRequestSpec
impl UnsafeUnpin for EvictionRequestSpec
impl UnwindSafe for EvictionRequestSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more