Documentation ¶
Index ¶
- func IsChildUpper(parentSNS, childSNS client.Object) (bool, error)
- func IsNSResourcePool(namespace *objectcontext.ObjectContext) (bool, error)
- func IsNSUpperResourcePool(ns *objectcontext.ObjectContext) (bool, error)
- func IsSNSResourcePool(sns client.Object) (bool, error)
- func IsSNSUpper(sns *objectcontext.ObjectContext) (bool, error)
- func IsSNSUpperFromAnnotation(sns client.Object) (bool, error)
- func SNSIsUpperAnnotation(sns client.Object) string
- func SNSLabel(sns client.Object) string
- func SetSNSResourcePoolLabel(snsParentNS, snsObject *objectcontext.ObjectContext) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsChildUpper ¶
IsChildUpper gets a subnamespace father and child objects and returns whether the child should now become the upper resource pool
func IsNSResourcePool ¶
func IsNSResourcePool(namespace *objectcontext.ObjectContext) (bool, error)
IsNSResourcePool returns a boolean value indicating if a namespace is a ResourcePool or not, based on its corresponding subnamespace
func IsNSUpperResourcePool ¶
func IsNSUpperResourcePool(ns *objectcontext.ObjectContext) (bool, error)
IsNSUpperResourcePool returns true if the namespace is an upper resource pool
func IsSNSResourcePool ¶
IsSNSResourcePool returns a boolean value indicating if a subnamespace is a resource pool or not
func IsSNSUpper ¶
func IsSNSUpper(sns *objectcontext.ObjectContext) (bool, error)
IsSNSUpper returns true if the subnamespace is an upper resource pool, it happens only when the parent is from subnamespace kind or is a root namespace
func IsSNSUpperFromAnnotation ¶
IsSNSUpperFromAnnotation returns true if the subnamespace is an upper resource pool, based on its label
func SNSIsUpperAnnotation ¶
SNSIsUpperAnnotation returns the is-upper-rp annotation of an SNS
func SetSNSResourcePoolLabel ¶
func SetSNSResourcePoolLabel(snsParentNS, snsObject *objectcontext.ObjectContext) error
SetSNSResourcePoolLabel sets a ResourcePool label on the subnamespace based on the ResourcePool label in its parent namespace
Types ¶
This section is empty.