resourcequota

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "ResourceQuota"

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

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 (*EvaluatorController) Start

func (e *EvaluatorController) Start(ctx context.Context) error

type QuotaAccessor

type QuotaAccessor interface {
	List(ctx context.Context, namespace string) ([]corev1alpha1.ResourceQuota, error)
	UpdateStatus(ctx context.Context, newQuota, oldQuota *corev1alpha1.ResourceQuota) error
}

type ResourceQuota

type ResourceQuota struct {
	*admission.Handler
	// contains filtered or unexported fields
}

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 (*ResourceQuota) ValidateInitialization

func (r *ResourceQuota) ValidateInitialization() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL