pub trait PodSpecExt {
// Required methods
fn container(container: Container) -> Self;
fn containers(containers: impl IntoIterator<Item = Container>) -> Self;
fn service_account_name(self, name: impl ToString) -> Self;
fn image_pull_secret(self, name: impl ToString) -> Self;
fn volumes(self, volumes: impl IntoIterator<Item = Volume>) -> Self;
fn node_selector(
self,
node_selector: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> Self;
fn affinity(self, affinity: impl Into<Option<Affinity>>) -> Self;
fn tolerations(
self,
tolerations: impl IntoIterator<Item = Toleration>,
) -> Self;
}
Required Methods§
Sourcefn containers(containers: impl IntoIterator<Item = Container>) -> Self
fn containers(containers: impl IntoIterator<Item = Container>) -> Self
Build corev1::PodSpec
with these containers
Sourcefn service_account_name(self, name: impl ToString) -> Self
fn service_account_name(self, name: impl ToString) -> Self
Set service account name
Sourcefn image_pull_secret(self, name: impl ToString) -> Self
fn image_pull_secret(self, name: impl ToString) -> Self
Add image pull secret
Sourcefn volumes(self, volumes: impl IntoIterator<Item = Volume>) -> Self
fn volumes(self, volumes: impl IntoIterator<Item = Volume>) -> Self
Add volumes
Sourcefn node_selector(
self,
node_selector: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> Self
fn node_selector( self, node_selector: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
Add node selector
Sourcefn tolerations(self, tolerations: impl IntoIterator<Item = Toleration>) -> Self
fn tolerations(self, tolerations: impl IntoIterator<Item = Toleration>) -> Self
Add tolerations
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.