k8s

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRelyOnObj

func IsRelyOnObj(quotas ...*v1.ResourceQuota) bool

func NewQuotaOperator

func NewQuotaOperator(pivot, local client.Client, current, old *v1.ResourceQuota, ctx context.Context) quota.Interface

Types

type QuotaOperator

type QuotaOperator struct {
	PivotClient  client.Client
	LocalClient  client.Client
	CurrentQuota *v1.ResourceQuota
	OldQuota     *v1.ResourceQuota

	context.Context
}

func (*QuotaOperator) Overload

func (o *QuotaOperator) Overload() (bool, string, error)

func (*QuotaOperator) Parent

func (o *QuotaOperator) Parent() (*quotav1.CubeResourceQuota, error)

func (*QuotaOperator) UpdateParentStatus

func (o *QuotaOperator) UpdateParentStatus(flush bool) error

Jump to

Keyboard shortcuts

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