Documentation ¶
Index ¶
- Constants
- type Actuator
- func (a *Actuator) Create(c *clusterv1.Cluster, m *clusterv1.Machine) error
- func (a *Actuator) Delete(c *clusterv1.Cluster, m *clusterv1.Machine) error
- func (a *Actuator) Exists(c *clusterv1.Cluster, m *clusterv1.Machine) (bool, error)
- func (a *Actuator) GetIP(cluster *clusterv1.Cluster, machine *clusterv1.Machine) (string, error)
- func (a *Actuator) GetKubeConfig(c *clusterv1.Cluster, m *clusterv1.Machine) (string, error)
- func (a *Actuator) Update(c *clusterv1.Cluster, goalMachine *clusterv1.Machine) error
- type ActuatorParams
- type AnnotationKey
- type ConfigWatch
- type MachineConfigList
- type MachineItem
- type MachineParams
- type MachineSetupConfig
- type MachineStatus
- type Metadata
- type SSHClientKubeadm
- type SSHClientMachineSetupConfigGetter
- type ValidMachineConfigItems
Constants ¶
const (
ProviderName = "ssh"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actuator ¶
type Actuator struct {
// contains filtered or unexported fields
}
Actuator is responsible for performing machine reconciliation
func NewActuator ¶
func NewActuator(params ActuatorParams) (*Actuator, error)
NewActuator creates a new Actuator
func (*Actuator) Exists ¶
Exists test for the existence of a machine and is invoked by the Machine Controller
func (*Actuator) GetIP ¶
GetIP returns IP of a machine, note that this also REQUIRED by clusterCreator (clusterdeployer.ProviderDeployer)
func (*Actuator) GetKubeConfig ¶
GetKubeConfig returns the kubeconfig file, note that this also REQUIRED by clusterCreator (clusterdeployer.ProviderDeployer)
type ActuatorParams ¶
type ActuatorParams struct { ClusterClient client.ClusterInterface EventRecorder record.EventRecorder KubeClient *kubernetes.Clientset V1Alpha1Client client.ClusterV1alpha1Interface MachineSetupConfigGetter SSHClientMachineSetupConfigGetter }
ActuatorParams holds parameter information for Actuator
type AnnotationKey ¶
type AnnotationKey string
const ( InstanceStatus AnnotationKey = "instance-status" Name AnnotationKey = "machine-name" )
type ConfigWatch ¶
type ConfigWatch struct {
// contains filtered or unexported fields
}
Config Watch holds the path to the named machines yaml file.
func NewConfigWatch ¶
func NewConfigWatch(path string) (*ConfigWatch, error)
func (*ConfigWatch) GetMachineSetupConfig ¶
func (cw *ConfigWatch) GetMachineSetupConfig() (MachineSetupConfig, error)
type MachineConfigList ¶
type MachineConfigList struct {
Items []MachineItem `json:"items"`
}
MachineConfigList is a list of MachineItems
type MachineItem ¶
type MachineItem struct { //TODO originally this was a list, investigate if we would. Params MachineParams `json:"machineParams"` Metadata Metadata `json:"metadata"` }
MachineItem holds MachineParams and Metadata
type MachineParams ¶
type MachineParams struct { Roles []v1alpha1.MachineRole `json:"roles"` Versions clusterv1.MachineVersionInfo `json:"versions"` }
MachineParams holds api roles and versions for a machine item.
type MachineSetupConfig ¶
type MachineSetupConfig interface { GetYaml() (string, error) GetMetadata(params *MachineParams) (Metadata, error) }
MachineSetupConfig defines the methods necessaty for a setup config
type MachineStatus ¶
type SSHClientKubeadm ¶
type SSHClientKubeadm interface {
TokenCreate(params kubeadm.TokenCreateParams) (string, error)
}
type SSHClientMachineSetupConfigGetter ¶
type SSHClientMachineSetupConfigGetter interface {
GetMachineSetupConfig() (MachineSetupConfig, error)
}
type ValidMachineConfigItems ¶
type ValidMachineConfigItems struct {
// contains filtered or unexported fields
}
ValidMachineConfigItems refers to the valid machine setup configs parsed out of the machine setup configs yaml file held in ConfigWatch.
func (*ValidMachineConfigItems) GetMetadata ¶
func (vc *ValidMachineConfigItems) GetMetadata(params *MachineParams) (Metadata, error)
GetMetadata returns the metadata contained in ValidMachineConfigItems.
func (*ValidMachineConfigItems) GetYaml ¶
func (vc *ValidMachineConfigItems) GetYaml() (string, error)
GetYaml returns a string yaml representation of ValidMachineConfigItems.