Struct k8s_openapi::v1_8::api::settings::v1alpha1::PodPresetSpec
source · pub struct PodPresetSpec {
pub env: Option<Vec<EnvVar>>,
pub env_from: Option<Vec<EnvFromSource>>,
pub selector: Option<LabelSelector>,
pub volume_mounts: Option<Vec<VolumeMount>>,
pub volumes: Option<Vec<Volume>>,
}
Expand description
PodPresetSpec is a description of a pod preset.
Fields§
§env: Option<Vec<EnvVar>>
Env defines the collection of EnvVar to inject into containers.
env_from: Option<Vec<EnvFromSource>>
EnvFrom defines the collection of EnvFromSource to inject into containers.
selector: Option<LabelSelector>
Selector is a label query over a set of resources, in this case pods. Required.
volume_mounts: Option<Vec<VolumeMount>>
VolumeMounts defines the collection of VolumeMount to inject into containers.
volumes: Option<Vec<Volume>>
Volumes defines the collection of Volume to inject into the pod.
Trait Implementations§
source§impl Clone for PodPresetSpec
impl Clone for PodPresetSpec
source§fn clone(&self) -> PodPresetSpec
fn clone(&self) -> PodPresetSpec
Returns a copy 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 PodPresetSpec
impl Debug for PodPresetSpec
source§impl Default for PodPresetSpec
impl Default for PodPresetSpec
source§fn default() -> PodPresetSpec
fn default() -> PodPresetSpec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PodPresetSpec
impl<'de> Deserialize<'de> for PodPresetSpec
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more