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 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.