[−][src]Struct k8s_openapi::api::node::v1alpha1::RuntimeClassSpec
RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.
Fields
overhead: Option<Overhead>
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature.
runtime_handler: String
RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
scheduling: Option<Scheduling>
Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.
Trait Implementations
impl Clone for RuntimeClassSpec
[src]
pub fn clone(&self) -> RuntimeClassSpec
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RuntimeClassSpec
[src]
impl Default for RuntimeClassSpec
[src]
pub fn default() -> RuntimeClassSpec
[src]
impl<'de> Deserialize<'de> for RuntimeClassSpec
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl PartialEq<RuntimeClassSpec> for RuntimeClassSpec
[src]
pub fn eq(&self, other: &RuntimeClassSpec) -> bool
[src]
pub fn ne(&self, other: &RuntimeClassSpec) -> bool
[src]
impl Serialize for RuntimeClassSpec
[src]
impl StructuralPartialEq for RuntimeClassSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for RuntimeClassSpec
[src]
impl Send for RuntimeClassSpec
[src]
impl Sync for RuntimeClassSpec
[src]
impl Unpin for RuntimeClassSpec
[src]
impl UnwindSafe for RuntimeClassSpec
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,