nodepool

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func OrderByWeight(nps []*v1.NodePool)

OrderByWeight orders the NodePools in the provided slice by their priority weight in-place. This priority evaluates the following things in precedence order:

  1. NodePools that have a larger weight are ordered first
  2. 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.

Jump to

Keyboard shortcuts

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