kubequota

package
v0.8.1 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: 26 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "KCPKubeResourceQuota"

PluginName is the name of this admission plugin.

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers this admission plugin.

Types

type KubeResourceQuota

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

KubeResourceQuota is an admission plugin that handles quota per logical cluster.

func NewKubeResourceQuota

func NewKubeResourceQuota(config *resourcequotaapi.Configuration) *KubeResourceQuota

NewKubeResourceQuota returns a new KubeResourceQuota admission plugin.

func (*KubeResourceQuota) SetExternalKubeInformerFactory

func (k *KubeResourceQuota) SetExternalKubeInformerFactory(informers kubernetesinformers.SharedInformerFactory)

func (*KubeResourceQuota) SetKcpInformers

func (k *KubeResourceQuota) SetKcpInformers(informers kcpinformers.SharedInformerFactory)

func (*KubeResourceQuota) SetKubeClusterClient

func (k *KubeResourceQuota) SetKubeClusterClient(kubeClusterClient kubernetesclient.ClusterInterface)

func (*KubeResourceQuota) SetQuotaConfiguration

func (k *KubeResourceQuota) SetQuotaConfiguration(quotaConfiguration quota.Configuration)

func (*KubeResourceQuota) SetServerShutdownChannel

func (k *KubeResourceQuota) SetServerShutdownChannel(ch <-chan struct{})

func (*KubeResourceQuota) Validate

Validate gets or creates a resourcequota.QuotaAdmission plugin for the logical cluster in the request and then delegates validation to it.

func (*KubeResourceQuota) ValidateInitialization

func (k *KubeResourceQuota) ValidateInitialization() error

ValidateInitialization validates all the expected fields are set.

Jump to

Keyboard shortcuts

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