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§
Sourceconst POD_SCHEDULED: &str = "PodScheduled"
const POD_SCHEDULED: &str = "PodScheduled"
PodScheduled represents status of the scheduling process for this pod
Sourceconst POD_READY_TO_START_CONTAINERS: &str = "PodReadyToStartContainers"
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)
Sourceconst CONTAINERS_READY: &str = "ContainersReady"
const CONTAINERS_READY: &str = "ContainersReady"
ContainersReady indicates whether all containers in the pod are ready
Sourceconst POD_INITIALIZED: &str = "Initialized"
const POD_INITIALIZED: &str = "Initialized"
PodInitialized means that all init containers in the pod have started successfully
Sourceconst POD_READY: &str = "Ready"
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
Sourceconst DISRUPTION_TARGET: &str = "DisruptionTarget"
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)
Sourceconst POD_RESIZE_PENDING: &str = "PodResizePending"
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.
Sourceconst POD_RESIZE_IN_PROGRESS: &str = "PodResizeInProgress"
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.
Sourceconst POD_REASON_UNSCHEDULABLE: &str = "Unschedulable"
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.
Sourceconst POD_REASON_SCHEDULING_GATED: &str = "SchedulingGated"
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.
Sourceconst POD_REASON_SCHEDULER_ERROR: &str = "SchedulerError"
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.
Sourceconst POD_REASON_TERMINATION_BY_KUBELET: &str = "TerminationByKubelet"
const POD_REASON_TERMINATION_BY_KUBELET: &str = "TerminationByKubelet"
PodReasonTerminationByKubelet reason in DisruptionTarget pod condition indicates that the termination is initiated by kubelet
Sourceconst POD_REASON_PREEMPTION_BY_SCHEDULER: &str = "PreemptionByScheduler"
const POD_REASON_PREEMPTION_BY_SCHEDULER: &str = "PreemptionByScheduler"
PodReasonPreemptionByScheduler reason in DisruptionTarget pod condition indicates that the disruption was initiated by scheduler’s preemption.
Sourceconst POD_REASON_DEFERRED: &str = "Deferred"
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.
Sourceconst POD_REASON_INFEASIBLE: &str = "Infeasible"
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
Sourceconst POD_REASON_ERROR: &str = "Error"
const POD_REASON_ERROR: &str = "Error"
PodReasonError reason in PodResizeInProgress pod condition indicates that an error occurred while actuating the resize.
Required Methods§
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
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.