Documentation ¶
Index ¶
- Constants
- func CreateApiServerAndController(token string) error
- func CreateExtApiServerRoleBinding() error
- func PreloadMasterScript(version string, dockerImages []string) (string, error)
- func PreloadNodeScript(version string, dockerImages []string) (string, error)
- type DeploymentClient
- type VsphereClient
- func (vc *VsphereClient) Create(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
- func (vc *VsphereClient) Delete(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
- func (vc *VsphereClient) Exists(cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error)
- func (vc *VsphereClient) GetTfState(machine *clusterv1.Machine) (string, error)
- func (vc *VsphereClient) PostDelete(cluster *clusterv1.Cluster, machines []*clusterv1.Machine) error
- func (vc *VsphereClient) Update(cluster *clusterv1.Cluster, goalMachine *clusterv1.Machine) error
Constants ¶
View Source
const ( VmIpAnnotationKey = "vm-ip-address" ControlPlaneVersionAnnotationKey = "control-plane-version" KubeletVersionAnnotationKey = "kubelet-version" // Filename in which named machines are saved using a ConfigMap (in master). NamedMachinesFilename = "vsphere_named_machines.yaml" // The contents of the tfstate file for a machine. StatusMachineTerraformState = "tf-state" )
View Source
const ( StageDir = "/tmp/cluster-api/machines" MachinePathStageFormat = "/tmp/cluster-api/machines/%s/" TfConfigFilename = "terraform.tf" TfVarsFilename = "variables.tfvars" TfStateFilename = "terraform.tfstate" )
View Source
const InstanceStatusAnnotationKey = "instance-status"
Variables ¶
This section is empty.
Functions ¶
func CreateExtApiServerRoleBinding ¶
func CreateExtApiServerRoleBinding() error
TODO: We need to change this when we create dedicated service account for apiserver/controller pod.
func PreloadMasterScript ¶
PreloadMasterScript returns a script that can be used to preload a master.
Types ¶
type DeploymentClient ¶
type DeploymentClient struct{}
Contains vsphere-specific deployment logic intended to eventually implement ProviderDeployer interface at sigs.k8s.io/cluster-api/clusterctl/clusterdeployer/clusterdeployer.go Currently implements a subset of the machineDeployer interface at sigs.k8s.io/cluster-api/vsphere-deployer/deploy/machinedeployer.go till vsphere-deployer gets deleted
func NewDeploymentClient ¶
func NewDeploymentClient() *DeploymentClient
func (*DeploymentClient) GetIP ¶
func (*DeploymentClient) GetIP(machine *clusterv1.Machine) (string, error)
func (*DeploymentClient) GetKubeConfig ¶
func (d *DeploymentClient) GetKubeConfig(master *clusterv1.Machine) (string, error)
type VsphereClient ¶
type VsphereClient struct { // Once the vsphere-deployer is deleted, both DeploymentClient and VsphereClient can depend on // something that implements GetIP instead of the VsphereClient depending on DeploymentClient. *DeploymentClient // contains filtered or unexported fields }
func NewMachineActuator ¶
func NewMachineActuator(kubeadmToken string, machineClient client.MachineInterface, namedMachinePath string) (*VsphereClient, error)
func (*VsphereClient) GetTfState ¶
func (vc *VsphereClient) GetTfState(machine *clusterv1.Machine) (string, error)
func (*VsphereClient) PostDelete ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.