resourcepool

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsChildUpper

func IsChildUpper(parentSNS, childSNS client.Object) (bool, error)

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

func IsSNSResourcePool(sns client.Object) (bool, error)

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

func IsSNSUpperFromAnnotation(sns client.Object) (bool, error)

IsSNSUpperFromAnnotation returns true if the subnamespace is an upper resource pool, based on its label

func SNSIsUpperAnnotation

func SNSIsUpperAnnotation(sns client.Object) string

SNSIsUpperAnnotation returns the is-upper-rp annotation of an SNS

func SNSLabel

func SNSLabel(sns client.Object) string

SNSLabel returns the ResourcePool label of a subnamespace

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.

Jump to

Keyboard shortcuts

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