Versions in this module Expand all Collapse all v1 v1.16.3 Nov 9, 2022 Changes in this version + const PluginName + func CheckRequest(quotas []corev1.ResourceQuota, a admission.Attributes, ...) ([]corev1.ResourceQuota, error) + func IsDefaultDeny(err error) bool + func LoadConfiguration(config io.Reader) (*resourcequotaapi.Configuration, error) + func Register(plugins *admission.Plugins) + type Evaluator interface + Evaluate func(a admission.Attributes) error + func NewQuotaEvaluator(quotaAccessor QuotaAccessor, ...) Evaluator + type QuotaAccessor interface + GetQuotas func(namespace string) ([]corev1.ResourceQuota, error) + UpdateQuotaStatus func(newQuota *corev1.ResourceQuota) error + type QuotaAdmission struct + func NewResourceQuota(config *resourcequotaapi.Configuration, numEvaluators int, ...) (*QuotaAdmission, error) + func (a *QuotaAdmission) SetExternalKubeClientSet(client kubernetes.Interface) + func (a *QuotaAdmission) SetExternalKubeInformerFactory(f informers.SharedInformerFactory) + func (a *QuotaAdmission) SetQuotaConfiguration(c quota.Configuration) + func (a *QuotaAdmission) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) (err error) + func (a *QuotaAdmission) ValidateInitialization() error