pub struct MutatingAdmissionPolicyBinding {
pub metadata: ObjectMeta,
pub spec: Option<MutatingAdmissionPolicyBindingSpec>,
}
Expand description
MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource 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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-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<MutatingAdmissionPolicyBindingSpec>
Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
Trait Implementations§
Source§impl Clone for MutatingAdmissionPolicyBinding
impl Clone for MutatingAdmissionPolicyBinding
Source§fn clone(&self) -> MutatingAdmissionPolicyBinding
fn clone(&self) -> MutatingAdmissionPolicyBinding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl DeepMerge for MutatingAdmissionPolicyBinding
impl DeepMerge for MutatingAdmissionPolicyBinding
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.Source§impl Default for MutatingAdmissionPolicyBinding
impl Default for MutatingAdmissionPolicyBinding
Source§fn default() -> MutatingAdmissionPolicyBinding
fn default() -> MutatingAdmissionPolicyBinding
Source§impl<'de> Deserialize<'de> for MutatingAdmissionPolicyBinding
impl<'de> Deserialize<'de> for MutatingAdmissionPolicyBinding
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 MutatingAdmissionPolicyBinding
impl PartialEq for MutatingAdmissionPolicyBinding
Source§fn eq(&self, other: &MutatingAdmissionPolicyBinding) -> bool
fn eq(&self, other: &MutatingAdmissionPolicyBinding) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl Resource for MutatingAdmissionPolicyBinding
impl Resource for MutatingAdmissionPolicyBinding
Source§const API_VERSION: &'static str = "admissionregistration.k8s.io/v1alpha1"
const API_VERSION: &'static str = "admissionregistration.k8s.io/v1alpha1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more