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 for ValidatingAdmissionPolicyBinding
impl PartialEq 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