pub struct ValidatingAdmissionPolicyBinding {
pub metadata: ObjectMeta,
pub spec: Option<ValidatingAdmissionPolicyBindingSpec>,
}
Expand description
ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don’t use params, otherwise N is the number of parameters selected by the binding.
The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
Fields§
§metadata: ObjectMeta
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
spec: Option<ValidatingAdmissionPolicyBindingSpec>
Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
Trait Implementations§
source§impl Clone for ValidatingAdmissionPolicyBinding
impl Clone for ValidatingAdmissionPolicyBinding
source§fn clone(&self) -> ValidatingAdmissionPolicyBinding
fn clone(&self) -> ValidatingAdmissionPolicyBinding
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl DeepMerge for ValidatingAdmissionPolicyBinding
impl DeepMerge for ValidatingAdmissionPolicyBinding
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for ValidatingAdmissionPolicyBinding
impl Default for ValidatingAdmissionPolicyBinding
source§fn default() -> ValidatingAdmissionPolicyBinding
fn default() -> ValidatingAdmissionPolicyBinding
source§impl<'de> Deserialize<'de> for ValidatingAdmissionPolicyBinding
impl<'de> Deserialize<'de> for ValidatingAdmissionPolicyBinding
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<ValidatingAdmissionPolicyBinding> for ValidatingAdmissionPolicyBinding
impl PartialEq<ValidatingAdmissionPolicyBinding> for ValidatingAdmissionPolicyBinding
source§fn eq(&self, other: &ValidatingAdmissionPolicyBinding) -> bool
fn eq(&self, other: &ValidatingAdmissionPolicyBinding) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Resource for ValidatingAdmissionPolicyBinding
impl Resource for ValidatingAdmissionPolicyBinding
source§const API_VERSION: &'static str = "admissionregistration.k8s.io/v1beta1"
const API_VERSION: &'static str = "admissionregistration.k8s.io/v1beta1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more