Documentation
¶
Index ¶
- func ForNodeClass(nc status.Object) client.ListOption
- func IsManaged(nodePool *v1.NodePool, cp cloudprovider.CloudProvider) bool
- func IsManagedPredicateFuncs(cp cloudprovider.CloudProvider) predicate.Funcs
- func ListManaged(ctx context.Context, c client.Client, ...) ([]*v1.NodePool, error)
- func NodeClaimEventHandler() handler.EventHandler
- func NodeClassEventHandler(c client.Client) handler.EventHandler
- func NodeEventHandler() handler.EventHandler
- func OrderByWeight(nps []*v1.NodePool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForNodeClass ¶ added in v1.1.0
func ForNodeClass(nc status.Object) client.ListOption
func IsManaged ¶ added in v1.1.0
func IsManaged(nodePool *v1.NodePool, cp cloudprovider.CloudProvider) bool
func IsManagedPredicateFuncs ¶ added in v1.1.0
func IsManagedPredicateFuncs(cp cloudprovider.CloudProvider) predicate.Funcs
IsManagedPredicateFuncs is used to filter controller-runtime NodeClaim watches to NodeClaims managed by the given cloudprovider.
func ListManaged ¶ added in v1.1.0
func ListManaged(ctx context.Context, c client.Client, cloudProvider cloudprovider.CloudProvider, opts ...client.ListOption) ([]*v1.NodePool, error)
func NodeClaimEventHandler ¶ added in v1.1.0
func NodeClaimEventHandler() handler.EventHandler
func NodeClassEventHandler ¶ added in v1.0.0
func NodeClassEventHandler(c client.Client) handler.EventHandler
NodeClassEventHandler is a watcher on v1.NodePool that maps NodeClass to NodePools based on the nodeClassRef and enqueues reconcile.Requests for the NodePool
func NodeEventHandler ¶ added in v1.1.0
func NodeEventHandler() handler.EventHandler
func OrderByWeight ¶ added in v1.1.0
OrderByWeight orders the NodePools in the provided slice by their priority weight in-place. This priority evaluates the following things in precedence order:
- NodePools that have a larger weight are ordered first
- If two NodePools have the same weight, then the NodePool with the name later in the alphabet will come first
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.