resourcequota

package
v2.2.8-ent2-rc2+incomp... Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceQuotaValidatedCondition = "ResourceQuotaValidated"
	ResourceQuotaInitCondition      = "ResourceQuotaInit"
)

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, cluster *config.UserContext)

Types

type SyncController

type SyncController struct {
	ProjectLister       v3.ProjectLister
	Namespaces          v1.NamespaceInterface
	NamespaceLister     v1.NamespaceLister
	ResourceQuotas      v1.ResourceQuotaInterface
	ResourceQuotaLister v1.ResourceQuotaLister
	LimitRange          v1.LimitRangeInterface
	LimitRangeLister    v1.LimitRangeLister
	NsIndexer           clientcache.Indexer
}

SyncController takes care of creating Kubernetes resource quota based on the resource limits defined in namespace.resourceQuota

func (*SyncController) CreateResourceQuota

func (c *SyncController) CreateResourceQuota(ns *corev1.Namespace) (runtime.Object, error)

type UsageController

type UsageController struct {
	ProjectLister v3.ProjectLister

	Namespaces          v1.NamespaceInterface
	NamespaceLister     v1.NamespaceLister
	ResourceQuotas      v1.ResourceQuotaInterface
	ResourceQuotaLister v1.ResourceQuotaLister
	LimitRange          v1.LimitRangeInterface
	LimitRangeLister    v1.LimitRangeLister
	NsIndexer           clientcache.Indexer
	// contains filtered or unexported fields
}

UsageController is responsible for aggregate the resource quota usage, and setting this information in the project and namespace

Jump to

Keyboard shortcuts

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