pub struct AdmissionRequest {
pub operation: String,
pub username: String,
pub uid: String,
pub groups: Vec<String>,
pub name: String,
pub namespace: String,
pub dry_run: bool,
pub kind: GroupVersionKind,
pub resource: GroupVersionResource,
}Available on crate feature
validation only.Expand description
A request context for VAP evaluation.
Mirrors the request variable available in Kubernetes ValidatingAdmissionPolicy
CEL expressions. This is a flat projection for CEL binding, not the admission
webhook wire type; if you have a kube_core::admission::AdmissionRequest<T>,
convert it via to_cel_request().
Fields§
§operation: StringThe admission operation: "CREATE", "UPDATE", "DELETE", or "CONNECT".
username: StringThe authenticated username of the requesting user.
uid: StringThe UID of the requesting user.
groups: Vec<String>The group memberships of the requesting user.
name: StringThe name of the resource being admitted.
namespace: StringThe namespace of the resource being admitted.
dry_run: boolWhether the request is a dry-run.
kind: GroupVersionKindThe kind of the object being admitted.
resource: GroupVersionResourceThe resource being admitted.
Trait Implementations§
Source§impl Clone for AdmissionRequest
impl Clone for AdmissionRequest
Source§fn clone(&self) -> AdmissionRequest
fn clone(&self) -> AdmissionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AdmissionRequest
impl Debug for AdmissionRequest
Source§impl Default for AdmissionRequest
impl Default for AdmissionRequest
Source§fn default() -> AdmissionRequest
fn default() -> AdmissionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdmissionRequest
impl<'de> Deserialize<'de> for AdmissionRequest
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 Eq for AdmissionRequest
Source§impl PartialEq for AdmissionRequest
impl PartialEq for AdmissionRequest
Source§fn eq(&self, other: &AdmissionRequest) -> bool
fn eq(&self, other: &AdmissionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AdmissionRequest
impl Serialize for AdmissionRequest
impl StructuralPartialEq for AdmissionRequest
Auto Trait Implementations§
impl Freeze for AdmissionRequest
impl RefUnwindSafe for AdmissionRequest
impl Send for AdmissionRequest
impl Sync for AdmissionRequest
impl Unpin for AdmissionRequest
impl UnsafeUnpin for AdmissionRequest
impl UnwindSafe for AdmissionRequest
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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