Documentation
¶
Index ¶
- Constants
- Variables
- func GetRemoteClient(ctx context.Context, client ctlclient.Client, clusterKey ctlclient.ObjectKey) (ctlclient.Client, error)
- func IsControlPlaneMachine(nma *infrav1.NutanixMachine) bool
- func RemoveRemoteClient(clusterKey ctlclient.ObjectKey)
- type ClusterContext
- type MachineContext
- type VHADomainContext
Constants ¶
View Source
const ( MetroPreferredFailureDomainName = "metro-preferred-failuredomain" MetroPreferredPE = "metro-preferred-pe" MetroNodeGroupNameLabel = "metro-node-group-name-label" )
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
ConvergedClient *v4Converged.Client
Cluster *capiv1beta2.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 string, failureMessage error)
type MachineContext ¶
type MachineContext struct {
Context context.Context
NutanixClient *prismclientv3.Client
ConvergedClient *v4Converged.Client
Cluster *capiv1beta2.Cluster
Machine *capiv1beta2.Machine
NutanixCluster *infrav1.NutanixCluster
NutanixMachine *infrav1.NutanixMachine
// The VM ip address
IP string
// dataStore is used to pass data among functions in the same reconciling cycle
Datastore map[string]*string
}
MachineContext is a context used with a NutanixMachine reconciler
func (*MachineContext) SetFailureStatus ¶
func (clctx *MachineContext) SetFailureStatus(failureReason string, failureMessage error)
type VHADomainContext ¶
type VHADomainContext struct {
Context context.Context
NutanixClient *prismclientv3.Client
ConvergedClient *v4Converged.Client
Cluster *capiv1beta2.Cluster
NutanixCluster *infrav1.NutanixCluster
VHADomain *infrav1.NutanixVirtualHADomain
}
VHADomainContext is a context used with a NutanixVirutualHADomain reconciler
Click to show internal directories.
Click to hide internal directories.