Documentation ¶
Overview ¶
Package util implements utility functions.
Index ¶
- func GetMachinePoolByLabels(ctx context.Context, c client.Client, namespace string, ...) (*expv1.MachinePool, error)
- 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 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(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.