pub struct ClusterTrustBundleProjection {
pub name: Option<String>,
pub signer_name: Option<String>,
pub label_selector: Option<LabelSelector>,
pub optional: Option<bool>,
pub path: Option<String>,
}
Expand description
ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.
Fields§
§name: Option<String>
Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. +optional
signer_name: Option<String>
Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. +optional
label_selector: Option<LabelSelector>
Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as “match nothing”. If set but empty, interpreted as “match everything”. +optional
optional: Option<bool>
If true, don’t block pod startup if the referenced ClusterTrustBundle(s) aren’t available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. +optional
path: Option<String>
Relative path from the volume root to write the bundle.
Implementations§
Source§impl ClusterTrustBundleProjection
impl ClusterTrustBundleProjection
Sourcepub fn signer_name(&self) -> &str
pub fn signer_name(&self) -> &str
Returns the value of signer_name
, or the default value if signer_name
is unset.
Trait Implementations§
Source§impl Clone for ClusterTrustBundleProjection
impl Clone for ClusterTrustBundleProjection
Source§fn clone(&self) -> ClusterTrustBundleProjection
fn clone(&self) -> ClusterTrustBundleProjection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ClusterTrustBundleProjection
impl Debug for ClusterTrustBundleProjection
Source§impl Message for ClusterTrustBundleProjection
impl Message for ClusterTrustBundleProjection
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl PartialEq for ClusterTrustBundleProjection
impl PartialEq for ClusterTrustBundleProjection
Source§fn eq(&self, other: &ClusterTrustBundleProjection) -> bool
fn eq(&self, other: &ClusterTrustBundleProjection) -> bool
self
and other
values to be equal, and is used by ==
.