remotemachineset

package
v0.0.0-...-84ace31 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

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.

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(awsCreds *corev1.Secret, region string, remoteMachineSets []machineapi.MachineSet, 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, 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 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

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