resourcequota

package
v2.0.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

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
	ResourceQuotaTemplateLister v3.ResourceQuotaTemplateLister
}

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

func (*SyncController) CreateResourceQuota

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

Jump to

Keyboard shortcuts

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