pub struct MutatingAdmissionPolicyBindingSpec {
pub match_resources: Option<MatchResources>,
pub param_ref: Option<ParamRef>,
pub policy_name: Option<String>,
}
Expand description
MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.
Fields§
§match_resources: Option<MatchResources>
matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy’s matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy’s matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. ‘*’ matches CREATE, UPDATE and CONNECT.
param_ref: Option<ParamRef>
paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
policy_name: Option<String>
policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
Trait Implementations§
Source§impl Clone for MutatingAdmissionPolicyBindingSpec
impl Clone for MutatingAdmissionPolicyBindingSpec
Source§fn clone(&self) -> MutatingAdmissionPolicyBindingSpec
fn clone(&self) -> MutatingAdmissionPolicyBindingSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl DeepMerge for MutatingAdmissionPolicyBindingSpec
impl DeepMerge for MutatingAdmissionPolicyBindingSpec
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.Source§impl Default for MutatingAdmissionPolicyBindingSpec
impl Default for MutatingAdmissionPolicyBindingSpec
Source§fn default() -> MutatingAdmissionPolicyBindingSpec
fn default() -> MutatingAdmissionPolicyBindingSpec
Source§impl<'de> Deserialize<'de> for MutatingAdmissionPolicyBindingSpec
impl<'de> Deserialize<'de> for MutatingAdmissionPolicyBindingSpec
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>,
Source§impl PartialEq for MutatingAdmissionPolicyBindingSpec
impl PartialEq for MutatingAdmissionPolicyBindingSpec
Source§fn eq(&self, other: &MutatingAdmissionPolicyBindingSpec) -> bool
fn eq(&self, other: &MutatingAdmissionPolicyBindingSpec) -> bool
self
and other
values to be equal, and is used by ==
.