util

package
v0.4.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Overview

Package util implements utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMachinePoolByName

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

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

func GetOwnerMachinePool

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

GetOwnerMachinePool returns the MachinePool objects owning the current resource.

func MachinePoolToInfrastructureMapFunc added in v0.3.10

func MachinePoolToInfrastructureMapFunc(gvk schema.GroupVersionKind, log logr.Logger) 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