kubequota

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller manages per-workspace resource quota controllers.

func NewController

func NewController(
	clusterWorkspacesInformer tenancyinformers.ClusterWorkspaceInformer,
	kubeClusterClient kubernetesclient.ClusterInterface,
	kubeInformerFactory kubernetesinformers.SharedInformerFactory,
	dynamicDiscoverySharedInformerFactory *informer.DynamicDiscoverySharedInformerFactory,
	crdInformer apiextensionsinformers.CustomResourceDefinitionInformer,
	quotaRecalculationPeriod time.Duration,
	fullResyncPeriod time.Duration,
	workersPerLogicalCluster int,
	informersStarted <-chan struct{},
) (*Controller, error)

NewController creates a new Controller.

func (*Controller) Start

func (c *Controller) Start(ctx context.Context, numThreads int)

Start starts the controller.

type ScopingResourceQuotaInformer

type ScopingResourceQuotaInformer struct {
	// contains filtered or unexported fields
}

func (*ScopingResourceQuotaInformer) ForCluster

func (s *ScopingResourceQuotaInformer) ForCluster(clusterName logicalcluster.Name) *SingleClusterResourceQuotaInformer

type SingleClusterResourceQuotaInformer

type SingleClusterResourceQuotaInformer struct {
	// contains filtered or unexported fields
}

SingleClusterResourceQuotaInformer implements ResourceQuotaInformer, scoped to a single logical cluster. Calls to Informer().AddEventHandler() and Informer().AddEventHandlerWithResyncPeriod() are forwarded to registerHandler.

func (*SingleClusterResourceQuotaInformer) Informer

Informer returns a cache.SharedIndexInformer that delegates adding event handlers to registerEventHandlerForCluster.

func (*SingleClusterResourceQuotaInformer) Lister

Lister returns a ResourceQuotaLister scoped to a single logical cluster.

type SingleClusterResourceQuotaLister

type SingleClusterResourceQuotaLister struct {
	// contains filtered or unexported fields
}

SingleClusterResourceQuotaLister is a ResourceQuotaLister scoped to a single logical cluster.

func (SingleClusterResourceQuotaLister) List

List lists all ResourceQuota objects in a single logical cluster.

func (SingleClusterResourceQuotaLister) ResourceQuotas

ResourceQuotas returns a ResourceQuotaNamespaceLister scoped to a single logical cluster.

Jump to

Keyboard shortcuts

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