k8s_openapi_ext

Trait NodeExt

source
pub trait NodeExt: ResourceBuilder {
    // Required methods
    fn new(name: impl ToString) -> Self;
    fn taints(self, taints: impl IntoIterator<Item = Taint>) -> Self;
    fn unschedulable(self) -> Self;
}
Expand description

Extension trait for corev1::Node. Fluent builders and mutable accessors

Required Methods§

source

fn new(name: impl ToString) -> Self

Creates new corev1::Node object with given name`

source

fn taints(self, taints: impl IntoIterator<Item = Taint>) -> Self

Sets node taints

source

fn unschedulable(self) -> Self

Marks node as unschedulable

Object Safety§

This trait is not object safe.

Implementors§