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§
Sourcefn containers(containers: impl IntoIterator<Item = Container>) -> Self
fn containers(containers: impl IntoIterator<Item = Container>) -> Self
Build corev1::PodSpec with these containers
Sourcefn active_deadline_seconds(self, seconds: i64) -> Self
fn active_deadline_seconds(self, seconds: i64) -> Self
Set active_deadline_seconds
Sourcefn automount_service_account_token(self, yes: bool) -> Self
fn automount_service_account_token(self, yes: bool) -> Self
Set automount_service_account_token
Sourcefn dns_policy(self, policy: impl ToString) -> Self
fn dns_policy(self, policy: impl ToString) -> Self
Set dns_policy
Sourcefn enable_service_links(self, yes: bool) -> Self
fn enable_service_links(self, yes: bool) -> Self
Set enable_service_links
Sourcefn host_network(self, yes: bool) -> Self
fn host_network(self, yes: bool) -> Self
Set host_network
Sourcefn image_pull_secret(self, name: impl ToString) -> Self
fn image_pull_secret(self, name: impl ToString) -> Self
Add image pull secret
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 preemption_policy(self, policy: impl ToString) -> Self
fn preemption_policy(self, policy: impl ToString) -> Self
Set preemption_policy
Sourcefn priority_class_name(self, class_name: impl ToString) -> Self
fn priority_class_name(self, class_name: impl ToString) -> Self
Set priority_class_name
Sourcefn restart_policy(self, policy: impl ToString) -> Self
fn restart_policy(self, policy: impl ToString) -> Self
Set restart_policy
Sourcefn runtime_class_name(self, class_name: impl ToString) -> Self
fn runtime_class_name(self, class_name: impl ToString) -> Self
Set runtime_class_name
Sourcefn scheduler_name(self, scheduler: impl ToString) -> Self
fn scheduler_name(self, scheduler: impl ToString) -> Self
Set scheduler_name
Sourcefn service_account_name(self, name: impl ToString) -> Self
fn service_account_name(self, name: impl ToString) -> Self
Set service account name
Sourcefn service_account(self, name: impl ToString) -> Self
👎Deprecated: Use service_account_name instead
fn service_account(self, name: impl ToString) -> Self
Set service_account (deprecated)
Deprecated: Use [service_account_name] instead.
Sourcefn set_hostname_as_fqdn(self, yes: bool) -> Self
fn set_hostname_as_fqdn(self, yes: bool) -> Self
Set set_hostname_as_fqdn
Set share_process_namespace
Sourcefn termination_grace_period_seconds(self, seconds: i64) -> Self
fn termination_grace_period_seconds(self, seconds: i64) -> Self
Set termination_grace_period_seconds
Sourcefn tolerations(self, tolerations: impl IntoIterator<Item = Toleration>) -> Self
fn tolerations(self, tolerations: impl IntoIterator<Item = Toleration>) -> Self
Add tolerations
Sourcefn volumes(self, volumes: impl IntoIterator<Item = Volume>) -> Self
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.