util

package
v1.1.19-prerelease.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyCorrelationID added in v1.1.14

func CopyCorrelationID(source, target client.Object)

func GetAzureStackHCIMachinesInCluster

func GetAzureStackHCIMachinesInCluster(ctx context.Context, controllerClient client.Client, namespace, clusterName string) ([]*infrav1.AzureStackHCIMachine, error)

GetAzureStackHCIMachinesInCluster gets a cluster's AzureStackHCIMachines resources.

func GetNodeName added in v1.1.18

func GetNodeName(ctx context.Context, client client.Client, obj metav1.ObjectMeta) (string, error)

GetNodeName returns the Node Name from the resource's owning CAPI machine object.

func GetReconcileID added in v1.1.11

func GetReconcileID(ctx context.Context) types.UID

func ListVolumeAttachmentOnNode added in v1.1.18

func ListVolumeAttachmentOnNode(ctx context.Context, client *kubernetes.Clientset, clusterKey client.ObjectKey, nodeName string) ([]string, error)

func NewTargetClusterClient added in v1.1.18

func NewTargetClusterClient(ctx context.Context, controllerClient client.Client, clusterKey client.ObjectKey) (*kubernetes.Clientset, error)

func NewTargetClusterConfig added in v1.1.18

func NewTargetClusterConfig(ctx context.Context, controllerClient client.Reader, clusterKey client.ObjectKey) (*rest.Config, error)

Create a target cluster config based on the secret in the management cluster

func RandomAlphaNumericString added in v0.3.7

func RandomAlphaNumericString(n int) (string, error)

RandomAlphaNumericString returns a random alphanumeric string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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