pub struct PodTemplateSpec {
pub metadata: Option<ObjectMeta>,
pub spec: Option<PodSpec>,
}
Expand description
PodTemplateSpec describes the data a pod should have when created from a template
Fields§
§metadata: Option<ObjectMeta>
Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec: Option<PodSpec>
Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
Trait Implementations§
Source§impl Clone for PodTemplateSpec
impl Clone for PodTemplateSpec
Source§fn clone(&self) -> PodTemplateSpec
fn clone(&self) -> PodTemplateSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PodTemplateSpec
impl Debug for PodTemplateSpec
Source§impl DeepMerge for PodTemplateSpec
impl DeepMerge for PodTemplateSpec
Source§fn merge_from(&mut self, other: PodTemplateSpec)
fn merge_from(&mut self, other: PodTemplateSpec)
Merge
other
into self
.Source§impl Default for PodTemplateSpec
impl Default for PodTemplateSpec
Source§fn default() -> PodTemplateSpec
fn default() -> PodTemplateSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PodTemplateSpec
impl<'de> Deserialize<'de> for PodTemplateSpec
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PodTemplateSpec, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PodTemplateSpec, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PodTemplateSpec
impl PartialEq for PodTemplateSpec
Source§impl PodGetExt for PodTemplateSpec
impl PodGetExt for PodTemplateSpec
fn spec(&self) -> Option<&PodSpec>
fn status(&self) -> Option<&PodStatus>
fn containers(&self) -> Option<&[Container]>
fn ephemeral_containers(&self) -> Option<&[EphemeralContainer]>
fn init_containers(&self) -> Option<&[Container]>
fn node_selector(&self) -> Option<&BTreeMap<String, String>>
fn resource_claims(&self) -> Option<&[PodResourceClaim]>
fn tolerations(&self) -> Option<&[Toleration]>
fn readiness_gates(&self) -> Option<&[PodReadinessGate]>
fn message(&self) -> Option<&str>
fn phase(&self) -> Option<&str>
fn qos_class(&self) -> Option<&str>
fn reason(&self) -> Option<&str>
fn resize(&self) -> Option<&str>
fn conditions(&self) -> Option<&[PodCondition]>
fn container_statuses(&self) -> Option<&[ContainerStatus]>
fn ephemeral_container_statuses(&self) -> Option<&[ContainerStatus]>
fn init_container_statuses(&self) -> Option<&[ContainerStatus]>
fn nominated_node_name(&self) -> Option<&str>
fn resource_claim_statuses(&self) -> Option<&[PodResourceClaimStatus]>
fn host_ip(&self) -> Option<&str>
fn host_ips(&self) -> Option<&[HostIP]>
fn pod_ip(&self) -> Option<&str>
fn pod_ips(&self) -> Option<&[PodIP]>
fn start_time(&self) -> Option<&Time>
fn condition(&self, type_: &str) -> Option<&PodCondition>
fn is_ready(&self) -> bool
Source§impl PodTemplateSpecExt for PodTemplateSpec
impl PodTemplateSpecExt for PodTemplateSpec
fn new() -> Self
fn labels( self, labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
fn annotations( self, annotations: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
fn pod_spec(self, spec: PodSpec) -> Self
fn label(self, key: impl ToString, value: impl ToString) -> Self
fn annotation(self, key: impl ToString, value: impl ToString) -> Self
Source§fn app_instance(self, instance: impl ToString) -> Self
fn app_instance(self, instance: impl ToString) -> Self
Set recommended label ‘app.kubernetes.io/instance’
Source§fn app_version(self, version: impl ToString) -> Self
fn app_version(self, version: impl ToString) -> Self
Set recommended label ‘app.kubernetes.io/version’
Source§fn app_component(self, component: impl ToString) -> Self
fn app_component(self, component: impl ToString) -> Self
Set recommended label ‘app.kubernetes.io/component’
Source§fn app_part_of(self, part_of: impl ToString) -> Self
fn app_part_of(self, part_of: impl ToString) -> Self
Set recommended label ‘app.kubernetes.io/part-of’
Source§fn app_managed_by(self, managed_by: impl ToString) -> Self
fn app_managed_by(self, managed_by: impl ToString) -> Self
Set recommended label ‘app.kubernetes.io/managed-by’
Source§impl Serialize for PodTemplateSpec
impl Serialize for PodTemplateSpec
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PodTemplateSpec
Auto Trait Implementations§
impl Freeze for PodTemplateSpec
impl RefUnwindSafe for PodTemplateSpec
impl Send for PodTemplateSpec
impl Sync for PodTemplateSpec
impl Unpin for PodTemplateSpec
impl UnwindSafe for PodTemplateSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more