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