pub enum IoK8sApiCoreV1ContainerTerminationMessagePolicy {
FallbackToLogsOnError,
File,
}Expand description
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
Possible enum values:
"FallbackToLogsOnError"will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents."File"is the default behavior and will set the container status message to the contents of the container’s terminationMessagePath when the container exits.
Variants§
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl Clone for IoK8sApiCoreV1ContainerTerminationMessagePolicy
Source§fn clone(&self) -> IoK8sApiCoreV1ContainerTerminationMessagePolicy
fn clone(&self) -> IoK8sApiCoreV1ContainerTerminationMessagePolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl<'de> Deserialize<'de> for IoK8sApiCoreV1ContainerTerminationMessagePolicy
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 From<&IoK8sApiCoreV1ContainerTerminationMessagePolicy> for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl From<&IoK8sApiCoreV1ContainerTerminationMessagePolicy> for IoK8sApiCoreV1ContainerTerminationMessagePolicy
Source§fn from(value: &IoK8sApiCoreV1ContainerTerminationMessagePolicy) -> Self
fn from(value: &IoK8sApiCoreV1ContainerTerminationMessagePolicy) -> Self
Converts to this type from the input type.
Source§impl Ord for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl Ord for IoK8sApiCoreV1ContainerTerminationMessagePolicy
Source§fn cmp(
&self,
other: &IoK8sApiCoreV1ContainerTerminationMessagePolicy,
) -> Ordering
fn cmp( &self, other: &IoK8sApiCoreV1ContainerTerminationMessagePolicy, ) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl PartialEq for IoK8sApiCoreV1ContainerTerminationMessagePolicy
Source§fn eq(&self, other: &IoK8sApiCoreV1ContainerTerminationMessagePolicy) -> bool
fn eq(&self, other: &IoK8sApiCoreV1ContainerTerminationMessagePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl PartialOrd for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl Copy for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl Eq for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl StructuralPartialEq for IoK8sApiCoreV1ContainerTerminationMessagePolicy
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl RefUnwindSafe for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl Send for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl Sync for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl Unpin for IoK8sApiCoreV1ContainerTerminationMessagePolicy
impl UnwindSafe for IoK8sApiCoreV1ContainerTerminationMessagePolicy
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