helpers

package
v7.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 13 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 GetOldExpMachinePoolsByClusterID

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

func GetOldExpMachinePoolsByMetadata

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

func InitAzureMachineAnnotations

func InitAzureMachineAnnotations(ctx context.Context, ctrlClient client.Client, logger micrologger.Logger, azureMachine *capz.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