Documentation ¶
Index ¶
Constants ¶
const (
ControllerName = hivev1.RemoteMachinesetControllerName
)
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( client client.Client, awsCreds *corev1.Secret, 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 ¶
ReconcileRemoteMachineSet reconciles the MachineSets generated from a ClusterDeployment object
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.