Documentation ¶
Index ¶
- Variables
- func GetAPIEndpointForControlPlaneEndpoint(controlPlaneEndpoint string) (*infrav1.APIEndpoint, error)
- func GetKubeadmConfigForMachine(ctx context.Context, controllerClient client.Client, ...) (*bootstrapv1.KubeadmConfig, error)
- func GetMachineManagedObjectReference(machine *infrav1.VSphereMachine) vim25types.ManagedObjectReference
- func GetMachineMetadata(hostname string, machine infrav1.VSphereMachine, ...) ([]byte, error)
- func GetMachinePreferredIPAddress(machine *infrav1.VSphereMachine) (string, error)
- func GetMachinesInCluster(ctx context.Context, controllerClient client.Client, ...) ([]*clusterv1.Machine, error)
- func GetVSphereMachine(ctx context.Context, controllerClient client.Client, ...) (*infrav1.VSphereMachine, error)
- func GetVSphereMachinesInCluster(ctx context.Context, controllerClient client.Client, ...) ([]*infrav1.VSphereMachine, error)
- func IsControlPlaneMachine(machine *clusterv1.Machine) bool
- func NewKubeClient(ctx context.Context, controllerClient client.Client, ...) (kubernetes.Interface, error)
Constants ¶
This section is empty.
Variables ¶
var ErrNoMachineIPAddr = errors.New("no IP addresses found for machine")
ErrNoMachineIPAddr indicates that no valid IP addresses were found in a machine context
Functions ¶
func GetAPIEndpointForControlPlaneEndpoint ¶ added in v0.5.2
func GetAPIEndpointForControlPlaneEndpoint(controlPlaneEndpoint string) (*infrav1.APIEndpoint, error)
GetAPIEndpointForControlPlaneEndpoint parses the provided ControlPlaneEndpoint and returns an APIEndpoint.
func GetKubeadmConfigForMachine ¶ added in v0.5.2
func GetKubeadmConfigForMachine( ctx context.Context, controllerClient client.Client, machine *clusterv1.Machine) (*bootstrapv1.KubeadmConfig, error)
GetKubeadmConfigForMachine gets a CAPI Machine's associated KubeadmConfig resource.
func GetMachineManagedObjectReference ¶
func GetMachineManagedObjectReference(machine *infrav1.VSphereMachine) vim25types.ManagedObjectReference
GetMachineManagedObjectReference returns the managed object reference for a VSphereMachine resource.
func GetMachineMetadata ¶
func GetMachineMetadata(hostname string, machine infrav1.VSphereMachine, networkStatus ...infrav1.NetworkStatus) ([]byte, error)
GetMachineMetadata returns the cloud-init metadata as a base-64 encoded string for a given VSphereMachine.
func GetMachinePreferredIPAddress ¶
func GetMachinePreferredIPAddress(machine *infrav1.VSphereMachine) (string, error)
GetMachinePreferredIPAddress returns the preferred IP address for a VSphereMachine resource.
func GetMachinesInCluster ¶
func GetMachinesInCluster( ctx context.Context, controllerClient client.Client, namespace, clusterName string) ([]*clusterv1.Machine, error)
GetMachinesInCluster gets a cluster's Machine resources.
func GetVSphereMachine ¶
func GetVSphereMachine( ctx context.Context, controllerClient client.Client, namespace, machineName string) (*infrav1.VSphereMachine, error)
GetVSphereMachine gets a VSphereMachine resource for the given CAPI Machine.
func GetVSphereMachinesInCluster ¶
func GetVSphereMachinesInCluster( ctx context.Context, controllerClient client.Client, namespace, clusterName string) ([]*infrav1.VSphereMachine, error)
GetVSphereMachinesInCluster gets a cluster's VSphereMachine resources.
func IsControlPlaneMachine ¶
IsControlPlaneMachine returns a flag indicating whether or not a machine has the control plane role.
Types ¶
This section is empty.