k8s_openapi_ext

Trait PodExt

source
pub trait PodExt {
    // Required methods
    fn new(name: impl ToString) -> Self;
    fn with_labels(
        name: impl ToString,
        labels: impl IntoIterator<Item = (impl ToString, impl ToString)>,
    ) -> Self;
    fn spec(self, spec: PodSpec) -> Self;
    fn container(self, container: Container) -> Self;
    fn containers(self, containers: impl IntoIterator<Item = Container>) -> Self;
}

Required Methods§

source

fn new(name: impl ToString) -> Self

Creats new corev1::Pod object

source

fn with_labels( name: impl ToString, labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self

Creates new corev1::Pod object with given labels

source

fn spec(self, spec: PodSpec) -> Self

Sets spec

source

fn container(self, container: Container) -> Self

Sets this pod container

source

fn containers(self, containers: impl IntoIterator<Item = Container>) -> Self

Sets this pod containers

Object Safety§

This trait is not object safe.

Implementors§