resourceusage

package
v0.0.0-...-3d2515b Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindSparkApplication          = "SparkApplication"
	KindScheduledSparkApplication = "ScheduledSparkApplication"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceList

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

more convenient replacement for corev1.ResourceList

func (ResourceList) String

func (r ResourceList) String() string

type ResourceQuotaEnforcer

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

func NewResourceQuotaEnforcer

func NewResourceQuotaEnforcer(crdInformerFactory crdinformers.SharedInformerFactory, coreV1InformerFactory informers.SharedInformerFactory) ResourceQuotaEnforcer

func (*ResourceQuotaEnforcer) AdmitScheduledSparkApplication

func (r *ResourceQuotaEnforcer) AdmitScheduledSparkApplication(app so.ScheduledSparkApplication) (string, error)

func (*ResourceQuotaEnforcer) AdmitSparkApplication

func (r *ResourceQuotaEnforcer) AdmitSparkApplication(app so.SparkApplication) (string, error)

func (ResourceQuotaEnforcer) WaitForCacheSync

func (r ResourceQuotaEnforcer) WaitForCacheSync(stopCh <-chan struct{}) error

type ResourceUsageWatcher

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

func (*ResourceUsageWatcher) GetCurrentResourceUsage

func (r *ResourceUsageWatcher) GetCurrentResourceUsage(namespace string) ResourceList

func (*ResourceUsageWatcher) GetCurrentResourceUsageWithApplication

func (r *ResourceUsageWatcher) GetCurrentResourceUsageWithApplication(namespace, kind, name string) (namespaceResources, applicationResources ResourceList)

Jump to

Keyboard shortcuts

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