Documentation ¶
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type Evaluator
- type EvaluatorController
- type QuotaAccessor
- type ResourceQuota
- func (r *ResourceQuota) SetDrainedNotification(stopCh <-chan struct{})
- func (r *ResourceQuota) SetExternalIronCoreClientSet(client ironcore.Interface)
- func (r *ResourceQuota) SetExternalIronCoreInformerFactory(f informers.SharedInformerFactory)
- func (r *ResourceQuota) SetQuotaRegistry(registry quota.Registry)
- func (r *ResourceQuota) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (r *ResourceQuota) ValidateInitialization() error
Constants ¶
View Source
const PluginName = "ResourceQuota"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Evaluator ¶
type Evaluator interface {
Evaluate(ctx context.Context, a admission.Attributes) error
}
type EvaluatorController ¶
type EvaluatorController struct {
// contains filtered or unexported fields
}
func NewEvaluatorController ¶
func NewEvaluatorController(quotaAccessor QuotaAccessor, registry quota.Registry) *EvaluatorController
func (*EvaluatorController) Evaluate ¶
func (e *EvaluatorController) Evaluate(ctx context.Context, a admission.Attributes) error
type QuotaAccessor ¶
type QuotaAccessor interface { List(ctx context.Context, namespace string) ([]corev1alpha1.ResourceQuota, error) UpdateStatus(ctx context.Context, newQuota, oldQuota *corev1alpha1.ResourceQuota) error }
func NewQuotaAccessor ¶
func NewQuotaAccessor( client ironcore.Interface, lister corev1alpha1listers.ResourceQuotaLister, ) (QuotaAccessor, error)
type ResourceQuota ¶
func NewResourceQuota ¶
func NewResourceQuota() *ResourceQuota
func (*ResourceQuota) SetDrainedNotification ¶
func (r *ResourceQuota) SetDrainedNotification(stopCh <-chan struct{})
func (*ResourceQuota) SetExternalIronCoreClientSet ¶
func (r *ResourceQuota) SetExternalIronCoreClientSet(client ironcore.Interface)
func (*ResourceQuota) SetExternalIronCoreInformerFactory ¶
func (r *ResourceQuota) SetExternalIronCoreInformerFactory(f informers.SharedInformerFactory)
func (*ResourceQuota) SetQuotaRegistry ¶
func (r *ResourceQuota) SetQuotaRegistry(registry quota.Registry)
func (*ResourceQuota) Validate ¶
func (r *ResourceQuota) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
func (*ResourceQuota) ValidateInitialization ¶
func (r *ResourceQuota) ValidateInitialization() error
Click to show internal directories.
Click to hide internal directories.