pub struct RuntimeClass {
pub handler: String,
pub metadata: ObjectMeta,
pub overhead: Option<Overhead>,
pub scheduling: Option<Scheduling>,
}k8s only.Expand description
RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
Fields§
§handler: Stringhandler 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 Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
metadata: ObjectMetaMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
overhead: Option<Overhead>overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
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§
Source§impl Clone for RuntimeClass
impl Clone for RuntimeClass
Source§fn clone(&self) -> RuntimeClass
fn clone(&self) -> RuntimeClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeClass
impl Debug for RuntimeClass
Source§impl DeepMerge for RuntimeClass
impl DeepMerge for RuntimeClass
Source§fn merge_from(&mut self, other: RuntimeClass)
fn merge_from(&mut self, other: RuntimeClass)
other into self.Source§impl Default for RuntimeClass
impl Default for RuntimeClass
Source§fn default() -> RuntimeClass
fn default() -> RuntimeClass
Source§impl<'de> Deserialize<'de> for RuntimeClass
impl<'de> Deserialize<'de> for RuntimeClass
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RuntimeClass, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RuntimeClass, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl JsonSchema for RuntimeClass
Available on crate feature schemars only.
impl JsonSchema for RuntimeClass
schemars only.Source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl ListableResource for RuntimeClass
impl ListableResource for RuntimeClass
Source§impl Metadata for RuntimeClass
impl Metadata for RuntimeClass
Source§type Ty = ObjectMeta
type Ty = ObjectMeta
Source§fn metadata(&self) -> &<RuntimeClass as Metadata>::Ty
fn metadata(&self) -> &<RuntimeClass as Metadata>::Ty
Source§fn metadata_mut(&mut self) -> &mut <RuntimeClass as Metadata>::Ty
fn metadata_mut(&mut self) -> &mut <RuntimeClass as Metadata>::Ty
Source§impl PartialEq for RuntimeClass
impl PartialEq for RuntimeClass
Source§impl Resource for RuntimeClass
impl Resource for RuntimeClass
Source§const API_VERSION: &'static str = "node.k8s.io/v1"
const API_VERSION: &'static str = "node.k8s.io/v1"
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 = "node.k8s.io"
const GROUP: &'static str = "node.k8s.io"
Source§const URL_PATH_SEGMENT: &'static str = "runtimeclasses"
const URL_PATH_SEGMENT: &'static str = "runtimeclasses"
Source§type Scope = ClusterResourceScope
type Scope = ClusterResourceScope
Source§impl Serialize for RuntimeClass
impl Serialize for RuntimeClass
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl StructuralPartialEq for RuntimeClass
Auto Trait Implementations§
impl Forget for RuntimeClass
impl Freeze for RuntimeClass
impl RefUnwindSafe for RuntimeClass
impl Send for RuntimeClass
impl Sync for RuntimeClass
impl Unpin for RuntimeClass
impl UnsafeUnpin for RuntimeClass
impl UnwindSafe for RuntimeClass
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<K> Lookup for Kwhere
K: Resource,
impl<K> Lookup for Kwhere
K: Resource,
Source§type DynamicType = <K as Resource>::DynamicType
type DynamicType = <K as Resource>::DynamicType
Resource::DynamicType.Source§fn resource_version(&self) -> Option<Cow<'_, str>>
fn resource_version(&self) -> Option<Cow<'_, str>>
Source§fn api_version(dyntype: &Self::DynamicType) -> Cow<'_, str>
fn api_version(dyntype: &Self::DynamicType) -> Cow<'_, str>
Source§fn to_object_ref(&self, dyntype: Self::DynamicType) -> ObjectRef<Self>
fn to_object_ref(&self, dyntype: Self::DynamicType) -> ObjectRef<Self>
ObjectRef for this object.Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<K, S> Resource for K
impl<K, S> Resource for K
Source§type DynamicType = ()
type DynamicType = ()
Source§type Scope = S
type Scope = S
Source§fn meta(&self) -> &ObjectMeta
fn meta(&self) -> &ObjectMeta
Source§fn meta_mut(&mut self) -> &mut ObjectMeta
fn meta_mut(&mut self) -> &mut ObjectMeta
Source§fn metadata_api() -> bool
fn metadata_api() -> bool
Source§fn url_path(dt: &Self::DynamicType, namespace: Option<&str>) -> String
fn url_path(dt: &Self::DynamicType, namespace: Option<&str>) -> String
Source§fn object_ref(&self, dt: &Self::DynamicType) -> ObjectReference
fn object_ref(&self, dt: &Self::DynamicType) -> ObjectReference
Source§fn controller_owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
fn controller_owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
Source§fn owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
fn owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
Source§impl<K> ResourceExt for Kwhere
K: Resource,
impl<K> ResourceExt for Kwhere
K: Resource,
Source§fn name_unchecked(&self) -> String
fn name_unchecked(&self) -> String
Source§fn resource_version(&self) -> Option<String>
fn resource_version(&self) -> Option<String>
Source§fn uid(&self) -> Option<String>
fn uid(&self) -> Option<String>
Source§fn labels_mut(&mut self) -> &mut BTreeMap<String, String>
fn labels_mut(&mut self) -> &mut BTreeMap<String, String>
Source§fn annotations_mut(&mut self) -> &mut BTreeMap<String, String>
fn annotations_mut(&mut self) -> &mut BTreeMap<String, String>
Source§fn owner_references(&self) -> &[OwnerReference]
fn owner_references(&self) -> &[OwnerReference]
Source§fn owner_references_mut(&mut self) -> &mut Vec<OwnerReference>
fn owner_references_mut(&mut self) -> &mut Vec<OwnerReference>
Source§fn finalizers(&self) -> &[String]
fn finalizers(&self) -> &[String]
Source§fn finalizers_mut(&mut self) -> &mut Vec<String>
fn finalizers_mut(&mut self) -> &mut Vec<String>
Source§fn managed_fields(&self) -> &[ManagedFieldsEntry]
fn managed_fields(&self) -> &[ManagedFieldsEntry]
Source§fn managed_fields_mut(&mut self) -> &mut Vec<ManagedFieldsEntry>
fn managed_fields_mut(&mut self) -> &mut Vec<ManagedFieldsEntry>
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
map-response-body only.Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
trace only.Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
trace only.