pub struct PodSecurityPolicyReviewSpec {
pub service_account_names: Option<Vec<String>>,
pub template: PodTemplateSpec,
}
Expand description
PodSecurityPolicyReviewSpec defines specification for PodSecurityPolicyReview
Fields§
§service_account_names: Option<Vec<String>>
serviceAccountNames is an optional set of ServiceAccounts to run the check with. If serviceAccountNames is empty, the template.spec.serviceAccountName is used, unless it’s empty, in which case “default” is used instead. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored.
template: PodTemplateSpec
template is the PodTemplateSpec to check. The template.spec.serviceAccountName field is used if serviceAccountNames is empty, unless the template.spec.serviceAccountName is empty, in which case “default” is used. If serviceAccountNames is specified, template.spec.serviceAccountName is ignored.
Trait Implementations§
Source§impl Clone for PodSecurityPolicyReviewSpec
impl Clone for PodSecurityPolicyReviewSpec
Source§fn clone(&self) -> PodSecurityPolicyReviewSpec
fn clone(&self) -> PodSecurityPolicyReviewSpec
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 PodSecurityPolicyReviewSpec
impl Debug for PodSecurityPolicyReviewSpec
Source§impl Default for PodSecurityPolicyReviewSpec
impl Default for PodSecurityPolicyReviewSpec
Source§fn default() -> PodSecurityPolicyReviewSpec
fn default() -> PodSecurityPolicyReviewSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PodSecurityPolicyReviewSpec
impl<'de> Deserialize<'de> for PodSecurityPolicyReviewSpec
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
impl StructuralPartialEq for PodSecurityPolicyReviewSpec
Auto Trait Implementations§
impl Freeze for PodSecurityPolicyReviewSpec
impl RefUnwindSafe for PodSecurityPolicyReviewSpec
impl Send for PodSecurityPolicyReviewSpec
impl Sync for PodSecurityPolicyReviewSpec
impl Unpin for PodSecurityPolicyReviewSpec
impl UnwindSafe for PodSecurityPolicyReviewSpec
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