Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
ReconcileRemoteMachineSet reconciles the MachineSets generated from a ClusterDeployment object