clustermodule

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 17 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

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

func NewWrapper(obj client.Object) Wrapper

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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