pub struct Workload {
pub metadata: ObjectMeta,
pub spec: WorkloadSpec,
}Expand description
Workload allows for expressing scheduling constraints that should be used when managing lifecycle of workloads from scheduling perspective, including scheduling, preemption, eviction and other phases.
Fields§
§metadata: ObjectMetaStandard object’s metadata. Name must be a DNS subdomain.
spec: WorkloadSpecSpec defines the desired behavior of a Workload.
Trait Implementations§
Source§impl DeepMerge for Workload
impl DeepMerge for Workload
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other into self.Source§impl<'de> Deserialize<'de> for Workload
impl<'de> Deserialize<'de> for Workload
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 ListableResource for Workload
impl ListableResource for Workload
Source§impl Resource for Workload
impl Resource for Workload
Source§const API_VERSION: &'static str = "scheduling.k8s.io/v1alpha1"
const API_VERSION: &'static str = "scheduling.k8s.io/v1alpha1"
The API version of the resource. This is a composite of
Resource::GROUP and Resource::VERSION (eg "apiextensions.k8s.io/v1beta1")
or just the version for resources without a group (eg "v1"). Read moreSource§const GROUP: &'static str = "scheduling.k8s.io"
const GROUP: &'static str = "scheduling.k8s.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
Source§const URL_PATH_SEGMENT: &'static str = "workloads"
const URL_PATH_SEGMENT: &'static str = "workloads"
The URL path segment used to construct URLs related to this resource. Read more
Source§type Scope = NamespaceResourceScope
type Scope = NamespaceResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
impl StructuralPartialEq for Workload
Auto Trait Implementations§
impl Freeze for Workload
impl RefUnwindSafe for Workload
impl Send for Workload
impl Sync for Workload
impl Unpin for Workload
impl UnwindSafe for Workload
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