clustermodule

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

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

func IsIncompatibleOwnerError

func IsIncompatibleOwnerError(err error) 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

func NewWrapper(obj client.Object) Wrapper

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL