pub struct PodSecurityPolicySubjectReviewSpec {
pub groups: Option<Vec<String>>,
pub template: PodTemplateSpec,
pub user: Option<String>,
}
Expand description
PodSecurityPolicySubjectReviewSpec defines specification for PodSecurityPolicySubjectReview
Fields§
§groups: Option<Vec<String>>
groups is the groups you’re testing for.
template: PodTemplateSpec
template is the PodTemplateSpec to check. If template.spec.serviceAccountName is empty it will not be defaulted. If its non-empty, it will be checked.
user: Option<String>
user is the user you’re testing for. If you specify “user” but not “group”, then is it interpreted as “What if user were not a member of any groups. If user and groups are empty, then the check is performed using only the serviceAccountName in the template.
Trait Implementations§
Source§impl Clone for PodSecurityPolicySubjectReviewSpec
impl Clone for PodSecurityPolicySubjectReviewSpec
Source§fn clone(&self) -> PodSecurityPolicySubjectReviewSpec
fn clone(&self) -> PodSecurityPolicySubjectReviewSpec
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 Default for PodSecurityPolicySubjectReviewSpec
impl Default for PodSecurityPolicySubjectReviewSpec
Source§fn default() -> PodSecurityPolicySubjectReviewSpec
fn default() -> PodSecurityPolicySubjectReviewSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PodSecurityPolicySubjectReviewSpec
impl<'de> Deserialize<'de> for PodSecurityPolicySubjectReviewSpec
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
Source§impl PartialEq for PodSecurityPolicySubjectReviewSpec
impl PartialEq for PodSecurityPolicySubjectReviewSpec
Source§fn eq(&self, other: &PodSecurityPolicySubjectReviewSpec) -> bool
fn eq(&self, other: &PodSecurityPolicySubjectReviewSpec) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PodSecurityPolicySubjectReviewSpec
Auto Trait Implementations§
impl Freeze for PodSecurityPolicySubjectReviewSpec
impl RefUnwindSafe for PodSecurityPolicySubjectReviewSpec
impl Send for PodSecurityPolicySubjectReviewSpec
impl Sync for PodSecurityPolicySubjectReviewSpec
impl Unpin for PodSecurityPolicySubjectReviewSpec
impl UnwindSafe for PodSecurityPolicySubjectReviewSpec
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