PodConditionGetExt

Trait PodConditionGetExt 

Source
pub trait PodConditionGetExt {
Show 16 associated constants and 10 methods const POD_SCHEDULED: &str = "PodScheduled"; const POD_READY_TO_START_CONTAINERS: &str = "PodReadyToStartContainers"; const CONTAINERS_READY: &str = "ContainersReady"; const POD_INITIALIZED: &str = "Initialized"; const POD_READY: &str = "Ready"; const DISRUPTION_TARGET: &str = "DisruptionTarget"; const POD_RESIZE_PENDING: &str = "PodResizePending"; const POD_RESIZE_IN_PROGRESS: &str = "PodResizeInProgress"; const POD_REASON_UNSCHEDULABLE: &str = "Unschedulable"; const POD_REASON_SCHEDULING_GATED: &str = "SchedulingGated"; const POD_REASON_SCHEDULER_ERROR: &str = "SchedulerError"; const POD_REASON_TERMINATION_BY_KUBELET: &str = "TerminationByKubelet"; const POD_REASON_PREEMPTION_BY_SCHEDULER: &str = "PreemptionByScheduler"; const POD_REASON_DEFERRED: &str = "Deferred"; const POD_REASON_INFEASIBLE: &str = "Infeasible"; const POD_REASON_ERROR: &str = "Error"; // Required method fn myself(&self) -> &PodCondition; // Provided methods fn status(&self) -> &str { ... } fn type(&self) -> &str { ... } fn message(&self) -> Option<&str> { ... } fn reason(&self) -> Option<&str> { ... } fn last_probe_time(&self) -> Option<&Time> { ... } fn last_transition_time(&self) -> Option<&Time> { ... } fn is_true(&self) -> bool { ... } fn is_false(&self) -> bool { ... } fn is_unknown(&self) -> bool { ... }
}

Provided Associated Constants§

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.

Required Methods§

Provided Methods§

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§