helpers

package
v5.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAzureClusterByName

func GetAzureClusterByName(ctx context.Context, c client.Client, namespace, name string) (*capz.AzureCluster, error)

GetAzureClusterByName finds and return a AzureCluster object using the specified params.

func GetAzureClusterFromMetadata

func GetAzureClusterFromMetadata(ctx context.Context, c client.Client, obj metav1.ObjectMeta) (*capz.AzureCluster, error)

GetAzureClusterFromMetadata returns the AzureCluster object (if present) using the object metadata.

func GetAzureMachinePoolByName

func GetAzureMachinePoolByName(ctx context.Context, c client.Client, namespace, name string) (*capzexp.AzureMachinePool, error)

GetAzureMachinePoolByName finds and return a AzureMachinePool object using the specified params.

func GetAzureMachinePoolsByClusterID

func GetAzureMachinePoolsByClusterID(ctx context.Context, c client.Client, clusterNamespace, clusterID string) (*capzexp.AzureMachinePoolList, error)

func GetMachinePoolsByClusterID

func GetMachinePoolsByClusterID(ctx context.Context, c client.Client, clusterNamespace, clusterID string) (*capiexp.MachinePoolList, error)

func GetMachinePoolsByMetadata

func GetMachinePoolsByMetadata(ctx context.Context, c client.Client, obj metav1.ObjectMeta) (*capiexp.MachinePoolList, error)

func InitAzureMachineAnnotations added in v5.4.0

func InitAzureMachineAnnotations(ctx context.Context, ctrlClient client.Client, logger micrologger.Logger, azureMachine *v1alpha3.AzureMachine) error

func IsInvalidObject

func IsInvalidObject(err error) bool

IsInvalidObject asserts invalidObjectError.

func IsMissingOrganizationLabel

func IsMissingOrganizationLabel(err error) bool

IsMissingOrganizationLabel asserts missingOrganizationLabel.

func IsTooManyCredentialsError

func IsTooManyCredentialsError(err error) bool

IsTooManyCredentialsError asserts tooManyCredentialsError.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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