Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare(oldMods, newMods []infrav1.ClusterModule) bool
Compare returns whether both the cluster module slices are the same.
func IsClusterCompatible ¶
func IsClusterCompatible(ctx *context.ClusterContext) bool
Types ¶
type IncompatibleOwnerError ¶
type IncompatibleOwnerError struct {
// contains filtered or unexported fields
}
IncompatibleOwnerError represents the error condition wherein the resource pool in use during cluster module creation is not owned by compute cluster resource but owned by a standalone host.
func NewIncompatibleOwnerError ¶
func NewIncompatibleOwnerError(name string) IncompatibleOwnerError
NewIncompatibleOwnerError creates an instance of the IncompatibleOwnerError struct. This is introduced for testing purposes only.
func (IncompatibleOwnerError) Error ¶
func (e IncompatibleOwnerError) Error() string
type Service ¶
type Service interface {
Create(ctx *context.ClusterContext, wrapper Wrapper) (string, error)
DoesExist(ctx *context.ClusterContext, wrapper Wrapper, moduleUUID string) (bool, error)
Remove(ctx *context.ClusterContext, moduleUUID string) error
}
func NewService ¶
func NewService() Service
type Wrapper ¶
type Wrapper interface {
client.Object
// GetTemplatePath is used to fetch the path that contains the infrastructure
// machine template details in use.
GetTemplatePath() []string
// IsControlPlane is used to determine whether the cluster-api object is
// responsible for control plane VMs.
IsControlPlane() bool
}
Wrapper is used to expose methods on the cluster-api objects responsible for the creation of Machine objects that need to be anti-affined.
func NewWrapper ¶
Click to show internal directories.
Click to hide internal directories.