Struct k8s_openapi::api::admissionregistration::v1alpha1::ValidatingAdmissionPolicyBindingSpec
source · pub struct ValidatingAdmissionPolicyBindingSpec {
pub match_resources: Option<MatchResources>,
pub param_ref: Option<ParamRef>,
pub policy_name: Option<String>,
}
Expand description
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
Fields§
§match_resources: Option<MatchResources>
MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy’s matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.
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 ParamKind of the bound ValidatingAdmissionPolicy. 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 ValidatingAdmissionPolicy applied.
policy_name: Option<String>
PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding 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 ValidatingAdmissionPolicyBindingSpec
impl Clone for ValidatingAdmissionPolicyBindingSpec
source§fn clone(&self) -> ValidatingAdmissionPolicyBindingSpec
fn clone(&self) -> ValidatingAdmissionPolicyBindingSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl DeepMerge for ValidatingAdmissionPolicyBindingSpec
impl DeepMerge for ValidatingAdmissionPolicyBindingSpec
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for ValidatingAdmissionPolicyBindingSpec
impl Default for ValidatingAdmissionPolicyBindingSpec
source§fn default() -> ValidatingAdmissionPolicyBindingSpec
fn default() -> ValidatingAdmissionPolicyBindingSpec
source§impl<'de> Deserialize<'de> for ValidatingAdmissionPolicyBindingSpec
impl<'de> Deserialize<'de> for ValidatingAdmissionPolicyBindingSpec
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<ValidatingAdmissionPolicyBindingSpec> for ValidatingAdmissionPolicyBindingSpec
impl PartialEq<ValidatingAdmissionPolicyBindingSpec> for ValidatingAdmissionPolicyBindingSpec
source§fn eq(&self, other: &ValidatingAdmissionPolicyBindingSpec) -> bool
fn eq(&self, other: &ValidatingAdmissionPolicyBindingSpec) -> bool
self
and other
values to be equal, and is used
by ==
.