Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RemoteClientCache = map[ctlclient.ObjectKey]ctlclient.Client{}
)
Functions ¶
func GetRemoteClient ¶
func IsControlPlaneMachine ¶
func IsControlPlaneMachine(nma *infrav1.NutanixMachine) bool
IsControlPlaneMachine returns true if the provided resource is a member of the control plane.
func RemoveRemoteClient ¶
Types ¶
type ClusterContext ¶
type ClusterContext struct { Context context.Context NutanixClient *prismclientv3.Client Cluster *capiv1.Cluster NutanixCluster *infrav1.NutanixCluster }
ClusterContext is a context used with a NutanixCluster reconciler
func (*ClusterContext) GetNutanixMachinesInCluster ¶
func (clctx *ClusterContext) GetNutanixMachinesInCluster(client ctlclient.Client) ([]*infrav1.NutanixMachine, error)
GetNutanixMachinesInCluster gets a cluster's NutanixMachine resources.
func (*ClusterContext) SetFailureStatus ¶
func (clctx *ClusterContext) SetFailureStatus(failureReason capierrors.ClusterStatusError, failureMessage error)
type MachineContext ¶
type MachineContext struct { Context context.Context NutanixClient *prismclientv3.Client Cluster *capiv1.Cluster Machine *capiv1.Machine NutanixCluster *infrav1.NutanixCluster NutanixMachine *infrav1.NutanixMachine // The VM ip address IP string }
MachineContext is a context used with a NutanixMachine reconciler
func (*MachineContext) SetFailureStatus ¶
func (clctx *MachineContext) SetFailureStatus(failureReason capierrors.MachineStatusError, failureMessage error)
Click to show internal directories.
Click to hide internal directories.