PodCondition

Struct PodCondition 

Source
pub struct PodCondition {
    pub last_probe_time: Option<Time>,
    pub last_transition_time: Option<Time>,
    pub message: Option<String>,
    pub observed_generation: Option<i64>,
    pub reason: Option<String>,
    pub status: String,
    pub type_: String,
}
Expand description

PodCondition contains details for the current condition of this pod.

Fields§

§last_probe_time: Option<Time>

Last time we probed the condition.

§last_transition_time: Option<Time>

Last time the condition transitioned from one status to another.

§message: Option<String>

Human-readable message indicating details about last transition.

§observed_generation: Option<i64>

If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.

§reason: Option<String>

Unique, one-word, CamelCase reason for the condition’s last transition.

§status: String

Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions

§type_: String

Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions

Trait Implementations§

Source§

impl Clone for PodCondition

Source§

fn clone(&self) -> PodCondition

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PodCondition

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl DeepMerge for PodCondition

Source§

fn merge_from(&mut self, other: PodCondition)

Merge other into self.
Source§

impl Default for PodCondition

Source§

fn default() -> PodCondition

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PodCondition

Source§

fn deserialize<D>( deserializer: D, ) -> Result<PodCondition, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for PodCondition

Source§

fn eq(&self, other: &PodCondition) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PodConditionGetExt for PodCondition

Source§

fn myself(&self) -> &PodCondition

Source§

const POD_SCHEDULED: &str = "PodScheduled"

PodScheduled represents status of the scheduling process for this pod
Source§

const POD_READY_TO_START_CONTAINERS: &str = "PodReadyToStartContainers"

PodReadyToStartContainers pod sandbox is successfully configured and the pod is ready to launch containers (beta feature; enabled by default)
Source§

const CONTAINERS_READY: &str = "ContainersReady"

ContainersReady indicates whether all containers in the pod are ready
Source§

const POD_INITIALIZED: &str = "Initialized"

PodInitialized means that all init containers in the pod have started successfully
Source§

const POD_READY: &str = "Ready"

PodReady means the pod is able to service requests and should be added to the load balancing pools of all matching services
Source§

const DISRUPTION_TARGET: &str = "DisruptionTarget"

DisruptionTarget indicates the pod is about to be terminated due to a disruption (such as preemption, eviction API or garbage-collection)
Source§

const POD_RESIZE_PENDING: &str = "PodResizePending"

PodResizePending indicates that the pod has been resized, but kubelet has not yet allocated the resources. If both PodResizePending and PodResizeInProgress are set, it means that a new resize was requested in the middle of a previous pod resize that is still in progress.
Source§

const POD_RESIZE_IN_PROGRESS: &str = "PodResizeInProgress"

PodResizeInProgress indicates that a resize is in progress, and is present whenever the Kubelet has allocated resources for the resize, but has not yet actuated all of the required changes. If both PodResizePending and PodResizeInProgress are set, it means that a new resize was requested in the middle of a previous pod resize that is still in progress.
Source§

const POD_REASON_UNSCHEDULABLE: &str = "Unschedulable"

PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler can’t schedule the pod right now, for example due to insufficient resources in the cluster.
Source§

const POD_REASON_SCHEDULING_GATED: &str = "SchedulingGated"

PodReasonSchedulingGated reason in PodScheduled PodCondition means that the scheduler skips scheduling the pod because one or more scheduling gates are still present.
Source§

const POD_REASON_SCHEDULER_ERROR: &str = "SchedulerError"

PodReasonSchedulerError reason in PodScheduled PodCondition means that some internal error happens during scheduling, for example due to nodeAffinity parsing errors.
Source§

const POD_REASON_TERMINATION_BY_KUBELET: &str = "TerminationByKubelet"

PodReasonTerminationByKubelet reason in DisruptionTarget pod condition indicates that the termination is initiated by kubelet
Source§

const POD_REASON_PREEMPTION_BY_SCHEDULER: &str = "PreemptionByScheduler"

PodReasonPreemptionByScheduler reason in DisruptionTarget pod condition indicates that the disruption was initiated by scheduler’s preemption.
Source§

const POD_REASON_DEFERRED: &str = "Deferred"

PodReasonDeferred reason in PodResizePending pod condition indicates the proposed resize is feasible in theory (it fits on this node) but is not possible right now.
Source§

const POD_REASON_INFEASIBLE: &str = "Infeasible"

PodReasonInfeasible reason in PodResizePending pod condition indicates the proposed resize is not feasible and is rejected; it may not be re-evaluated
Source§

const POD_REASON_ERROR: &str = "Error"

PodReasonError reason in PodResizeInProgress pod condition indicates that an error occurred while actuating the resize.
Source§

fn status(&self) -> &str

Source§

fn type(&self) -> &str

Source§

fn message(&self) -> Option<&str>

Source§

fn reason(&self) -> Option<&str>

Source§

fn last_probe_time(&self) -> Option<&Time>

Source§

fn last_transition_time(&self) -> Option<&Time>

Source§

fn is_true(&self) -> bool

Source§

fn is_false(&self) -> bool

Source§

fn is_unknown(&self) -> bool

Source§

impl Serialize for PodCondition

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PodCondition

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,