resourcequota

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 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) SetExternalOnmetalClientSet

func (r *ResourceQuota) SetExternalOnmetalClientSet(client onmetalapi.Interface)

func (*ResourceQuota) SetExternalOnmetalInformerFactory

func (r *ResourceQuota) SetExternalOnmetalInformerFactory(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