Documentation ¶
Index ¶
- func AllowedDel(current *quotav1.CubeResourceQuota) bool
- func AllowedUpdate(current, old *quotav1.CubeResourceQuota) bool
- func InitStatus(current *quotav1.CubeResourceQuota)
- func IsRelyOnObj(quotas ...*quotav1.CubeResourceQuota) bool
- func NewQuotaOperator(client client.Client, current, old *quotav1.CubeResourceQuota, ...) quota.Interface
- type QuotaOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedDel ¶
func AllowedDel(current *quotav1.CubeResourceQuota) bool
AllowedDel return true if deletion of current cube resource quota is allowed, otherwise false
func AllowedUpdate ¶
func AllowedUpdate(current, old *quotav1.CubeResourceQuota) bool
AllowedUpdate return false if hard of current is less than old status otherwise true
func InitStatus ¶
func InitStatus(current *quotav1.CubeResourceQuota)
InitStatus initialize status of quota
func IsRelyOnObj ¶
func IsRelyOnObj(quotas ...*quotav1.CubeResourceQuota) bool
func NewQuotaOperator ¶
Types ¶
type QuotaOperator ¶
type QuotaOperator struct { Client client.Client CurrentQuota *quotav1.CubeResourceQuota OldQuota *quotav1.CubeResourceQuota context.Context }
func (*QuotaOperator) Parent ¶
func (o *QuotaOperator) Parent() (*quotav1.CubeResourceQuota, error)
func (*QuotaOperator) UpdateParentStatus ¶
func (o *QuotaOperator) UpdateParentStatus(flush bool) error
Click to show internal directories.
Click to hide internal directories.