Skip to main content

PodSpecExt

Trait PodSpecExt 

Source
pub trait PodSpecExt {
Show 28 methods // Required methods fn container(container: Container) -> Self; fn containers(containers: impl IntoIterator<Item = Container>) -> Self; fn active_deadline_seconds(self, seconds: i64) -> Self; fn affinity(self, affinity: impl Into<Option<Affinity>>) -> Self; fn automount_service_account_token(self, yes: bool) -> Self; fn dns_policy(self, policy: impl ToString) -> Self; fn enable_service_links(self, yes: bool) -> Self; fn hostname(self, hostname: impl ToString) -> Self; fn host_ipc(self, yes: bool) -> Self; fn host_network(self, yes: bool) -> Self; fn host_pid(self, yes: bool) -> Self; fn image_pull_secret(self, name: impl ToString) -> Self; fn node_name(self, node_name: impl ToString) -> Self; fn node_selector( self, node_selector: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self; fn preemption_policy(self, policy: impl ToString) -> Self; fn priority(self, priority: i32) -> Self; fn priority_class_name(self, class_name: impl ToString) -> Self; fn restart_policy(self, policy: impl ToString) -> Self; fn runtime_class_name(self, class_name: impl ToString) -> Self; fn scheduler_name(self, scheduler: impl ToString) -> Self; fn service_account_name(self, name: impl ToString) -> Self; fn service_account(self, name: impl ToString) -> Self; fn set_hostname_as_fqdn(self, yes: bool) -> Self; fn share_process_namespace(self, yes: bool) -> Self; fn subdomain(self, subdomain: impl ToString) -> Self; fn termination_grace_period_seconds(self, seconds: i64) -> Self; fn tolerations( self, tolerations: impl IntoIterator<Item = Toleration>, ) -> Self; fn volumes(self, volumes: impl IntoIterator<Item = Volume>) -> Self;
}

Required Methods§

Source

fn container(container: Container) -> Self

Build corev1::PodSpec with this container

Source

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

Build corev1::PodSpec with these containers

Source

fn active_deadline_seconds(self, seconds: i64) -> Self

Set active_deadline_seconds

Source

fn affinity(self, affinity: impl Into<Option<Affinity>>) -> Self

Set affinity

Source

fn automount_service_account_token(self, yes: bool) -> Self

Set automount_service_account_token

Source

fn dns_policy(self, policy: impl ToString) -> Self

Set dns_policy

Set enable_service_links

Source

fn hostname(self, hostname: impl ToString) -> Self

Set hostname

Source

fn host_ipc(self, yes: bool) -> Self

Set host_ipc

Source

fn host_network(self, yes: bool) -> Self

Set host_network

Source

fn host_pid(self, yes: bool) -> Self

Set host_pid

Source

fn image_pull_secret(self, name: impl ToString) -> Self

Add image pull secret

Source

fn node_name(self, node_name: impl ToString) -> Self

Set node_name

Source

fn node_selector( self, node_selector: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self

Add node selector

Source

fn preemption_policy(self, policy: impl ToString) -> Self

Set preemption_policy

Source

fn priority(self, priority: i32) -> Self

Set priority

Source

fn priority_class_name(self, class_name: impl ToString) -> Self

Set priority_class_name

Source

fn restart_policy(self, policy: impl ToString) -> Self

Set restart_policy

Source

fn runtime_class_name(self, class_name: impl ToString) -> Self

Set runtime_class_name

Source

fn scheduler_name(self, scheduler: impl ToString) -> Self

Set scheduler_name

Source

fn service_account_name(self, name: impl ToString) -> Self

Set service account name

Source

fn service_account(self, name: impl ToString) -> Self

👎Deprecated: Use service_account_name instead

Set service_account (deprecated)

Deprecated: Use [service_account_name] instead.

Source

fn set_hostname_as_fqdn(self, yes: bool) -> Self

Set set_hostname_as_fqdn

Source

fn share_process_namespace(self, yes: bool) -> Self

Set share_process_namespace

Source

fn subdomain(self, subdomain: impl ToString) -> Self

Set subdomain

Source

fn termination_grace_period_seconds(self, seconds: i64) -> Self

Set termination_grace_period_seconds

Source

fn tolerations(self, tolerations: impl IntoIterator<Item = Toleration>) -> Self

Add tolerations

Source

fn volumes(self, volumes: impl IntoIterator<Item = Volume>) -> Self

Add volumes

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.

Implementors§