remotemachineset

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 70 Imported by: 2

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new RemoteMachineSet Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func IsErrorUpdateEvent added in v1.1.16

func IsErrorUpdateEvent(evt event.UpdateEvent) bool

IsErrorUpdateEvent returns true when the update event for MachinePool is from error state.

Types

type AWSActuator

type AWSActuator struct {
	// contains filtered or unexported fields
}

AWSActuator encapsulates the pieces necessary to be able to generate a list of MachineSets to sync to the remote cluster.

func NewAWSActuator

func NewAWSActuator(
	client client.Client,
	credentials awsclient.CredentialsSource,
	region string,
	pool *hivev1.MachinePool,
	masterMachine *machineapi.Machine,
	scheme *runtime.Scheme,
	logger log.FieldLogger,
) (*AWSActuator, error)

NewAWSActuator is the constructor for building a AWSActuator

func (*AWSActuator) GenerateMachineSets

func (a *AWSActuator) GenerateMachineSets(cd *hivev1.ClusterDeployment, pool *hivev1.MachinePool, logger log.FieldLogger) ([]*machineapi.MachineSet, bool, error)

GenerateMachineSets satisfies the Actuator interface and will take a clusterDeployment and return a list of MachineSets to sync to the remote cluster.

type Actuator

type Actuator interface {

	// GenerateMachineSets returns the desired set of MachineSets in the target cluster for a given MachinePool.
	// Returns the list of generated machine sets, a boolean indicating if the controller should proceed with reconcile
	// or not, and an error. The boolean may be set in situations where we have not encountered an error, but still need
	// to wait before we can proceed with reconciling. (e.g. obtaining a pool name lease)
	GenerateMachineSets(*hivev1.ClusterDeployment, *hivev1.MachinePool, log.FieldLogger) (msets []*machineapi.MachineSet, proceed bool, genError error)
}

Actuator is the interface that must be implemented to standardize generating and returning the list of MachineSets to by synced to the remote cluster.

type AzureActuator

type AzureActuator struct {
	// contains filtered or unexported fields
}

AzureActuator encapsulates the pieces necessary to be able to generate a list of MachineSets to sync to the remote cluster.

func NewAzureActuator

func NewAzureActuator(azureCreds *corev1.Secret, logger log.FieldLogger) (*AzureActuator, error)

NewAzureActuator is the constructor for building a AzureActuator

func (*AzureActuator) GenerateMachineSets

func (a *AzureActuator) GenerateMachineSets(cd *hivev1.ClusterDeployment, pool *hivev1.MachinePool, logger log.FieldLogger) ([]*machineapi.MachineSet, bool, error)

GenerateMachineSets satisfies the Actuator interface and will take a clusterDeployment and return a list of MachineSets to sync to the remote cluster.

type GCPActuator

type GCPActuator struct {
	// contains filtered or unexported fields
}

GCPActuator encapsulates the pieces necessary to be able to generate a list of MachineSets to sync to the remote cluster.

func NewGCPActuator

func NewGCPActuator(
	client client.Client,
	gcpCreds *corev1.Secret,
	clusterVersion string,
	masterMachine *machineapi.Machine,
	remoteMachineSets []machineapi.MachineSet,
	scheme *runtime.Scheme,
	expectations controllerutils.ExpectationsInterface,
	logger log.FieldLogger,
) (*GCPActuator, error)

NewGCPActuator is the constructor for building a GCPActuator

func (*GCPActuator) GenerateMachineSets

func (a *GCPActuator) GenerateMachineSets(cd *hivev1.ClusterDeployment, pool *hivev1.MachinePool, logger log.FieldLogger) ([]*machineapi.MachineSet, bool, error)

GenerateMachineSets satisfies the Actuator interface and will take a clusterDeployment and return a list of MachineSets to sync to the remote cluster.

type OpenStackActuator added in v1.0.5

type OpenStackActuator struct {
	// contains filtered or unexported fields
}

OpenStackActuator encapsulates the pieces necessary to be able to generate a list of MachineSets to sync to the remote cluster.

func NewOpenStackActuator added in v1.0.5

func NewOpenStackActuator(masterMachine *machineapi.Machine, scheme *runtime.Scheme, kubeClient client.Client, logger log.FieldLogger) (*OpenStackActuator, error)

NewOpenStackActuator is the constructor for building a OpenStackActuator

func (*OpenStackActuator) GenerateMachineSets added in v1.0.5

func (a *OpenStackActuator) GenerateMachineSets(cd *hivev1.ClusterDeployment, pool *hivev1.MachinePool, logger log.FieldLogger) ([]*machineapi.MachineSet, bool, error)

GenerateMachineSets satisfies the Actuator interface and will take a clusterDeployment and return a list of MachineSets to sync to the remote cluster.

type OvirtActuator added in v1.0.6

type OvirtActuator struct {
	// contains filtered or unexported fields
}

OvirtActuator encapsulates the pieces necessary to be able to generate a list of MachineSets to sync to the remote cluster

func NewOvirtActuator added in v1.0.6

func NewOvirtActuator(masterMachine *machineapi.Machine, scheme *runtime.Scheme, logger log.FieldLogger) (*OvirtActuator, error)

NewOvirtActuator is the constructor for building a OvirtActuator

func (*OvirtActuator) GenerateMachineSets added in v1.0.6

func (a *OvirtActuator) GenerateMachineSets(cd *hivev1.ClusterDeployment, pool *hivev1.MachinePool, logger log.FieldLogger) ([]*machineapi.MachineSet, bool, error)

GenerateMachineSets satisfies the Actuator interface and will take a clusterDeployment and return a list of MachineSets to sync to the remote cluster.

type ReconcileRemoteMachineSet

type ReconcileRemoteMachineSet struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileRemoteMachineSet reconciles the MachineSets generated from a ClusterDeployment object

func (*ReconcileRemoteMachineSet) Reconcile

Reconcile reads that state of the cluster for a MachinePool object and makes changes to the remote cluster MachineSets based on the state read

type VSphereActuator added in v1.0.5

type VSphereActuator struct {
	// contains filtered or unexported fields
}

VSphereActuator encapsulates the pieces necessary to be able to generate a list of MachineSets to sync to the remote cluster

func NewVSphereActuator added in v1.0.5

func NewVSphereActuator(masterMachine *machineapi.Machine, scheme *runtime.Scheme, logger log.FieldLogger) (*VSphereActuator, error)

NewVSphereActuator is the constructor for building a VSphereActuator

func (*VSphereActuator) GenerateMachineSets added in v1.0.5

func (a *VSphereActuator) GenerateMachineSets(cd *hivev1.ClusterDeployment, pool *hivev1.MachinePool, logger log.FieldLogger) ([]*machineapi.MachineSet, bool, error)

GenerateMachineSets satisfies the Actuator interface and will take a clusterDeployment and return a list of MachineSets to sync to the remote cluster.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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