util

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Overview

Package util implements utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMachinePoolByLabels added in v1.6.0

func GetMachinePoolByLabels(ctx context.Context, c client.Client, namespace string, labels map[string]string) (*expv1.MachinePool, error)

GetMachinePoolByLabels finds and returns a MachinePool object using the value of clusterv1.MachinePoolNameLabel. This differs from GetMachinePoolByName as the label value can be a hash.

func GetMachinePoolByName

func GetMachinePoolByName(ctx context.Context, c client.Client, namespace, name string) (*expv1.MachinePool, error)

GetMachinePoolByName finds and returns a MachinePool object using the specified params.

func GetOwnerMachinePool

func GetOwnerMachinePool(ctx context.Context, c client.Client, obj metav1.ObjectMeta) (*expv1.MachinePool, error)

GetOwnerMachinePool returns the MachinePool objects owning the current resource.

func MachinePoolToInfrastructureMapFunc added in v0.3.10

func MachinePoolToInfrastructureMapFunc(ctx context.Context, gvk schema.GroupVersionKind) handler.MapFunc

MachinePoolToInfrastructureMapFunc returns a handler.MapFunc that watches for MachinePool events and returns reconciliation requests for an infrastructure provider object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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