Documentation ¶
Overview ¶
Package util implements utility functions.
Index ¶
- func GetMachinePoolByName(ctx context.Context, c client.Client, namespace, name string) (*expv1.MachinePool, error)
- func GetOwnerMachinePool(ctx context.Context, c client.Client, obj metav1.ObjectMeta) (*expv1.MachinePool, error)
- func MachinePoolToInfrastructureMapFunc(gvk schema.GroupVersionKind, log logr.Logger) handler.MapFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMachinePoolByName ¶
func GetMachinePoolByName(ctx context.Context, c client.Client, namespace, name string) (*expv1.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) (*expv1.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.
Click to show internal directories.
Click to hide internal directories.