terraform

package
v0.0.0-...-86ffc8e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MasterIpAnnotationKey            = "master-ip"
	TerraformConfigAnnotationKey     = "tf-config"
	ControlPlaneVersionAnnotationKey = "control-plane-version"
	KubeletVersionAnnotationKey      = "kubelet-version"

	// Filename in which named machines are saved using a ConfigMap (in master).
	NamedMachinesFilename = "vsphere_named_machines.yaml"
)
View Source
const InstanceStatusAnnotationKey = "instance-status"

Variables

This section is empty.

Functions

func CreateApiServerAndController

func CreateApiServerAndController(token string) error

func CreateExtApiServerRoleBinding

func CreateExtApiServerRoleBinding() error

TODO: We need to change this when we create dedicated service account for apiserver/controller pod.

func PreloadMasterScript

func PreloadMasterScript(version string, dockerImages []string) (string, error)

PreloadMasterScript returns a script that can be used to preload a master.

func PreloadNodeScript

func PreloadNodeScript(version string, dockerImages []string) (string, error)

PreloadNodeScript returns a script that can be used to preload a master.

Types

type TerraformClient

type TerraformClient struct {
	// contains filtered or unexported fields
}

func NewMachineActuator

func NewMachineActuator(kubeadmToken string, machineClient client.MachineInterface, namedMachinePath string) (*TerraformClient, error)

func (*TerraformClient) Create

func (tf *TerraformClient) Create(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

func (*TerraformClient) CreateMachineController

func (tf *TerraformClient) CreateMachineController(cluster *clusterv1.Cluster, initialMachines []*clusterv1.Machine, clientSet kubernetes.Clientset) error

func (*TerraformClient) Delete

func (tf *TerraformClient) Delete(_ *clusterv1.Cluster, machine *clusterv1.Machine) error

func (*TerraformClient) Exists

func (tf *TerraformClient) Exists(cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error)

func (*TerraformClient) GetIP

func (tf *TerraformClient) GetIP(machine *clusterv1.Machine) (string, error)

func (*TerraformClient) GetKubeConfig

func (tf *TerraformClient) GetKubeConfig(master *clusterv1.Machine) (string, error)

func (*TerraformClient) PostDelete

func (tf *TerraformClient) PostDelete(cluster *clusterv1.Cluster, machines []*clusterv1.Machine) error

func (*TerraformClient) SetupRemoteMaster

func (tf *TerraformClient) SetupRemoteMaster(master *clusterv1.Machine) error

After master created, move the plugins folder from local to master's .terraform.d/plugins. Currently each init will download the plugin, so for a large number of machines, this will eat up a lot of space.

func (*TerraformClient) Update

func (tf *TerraformClient) Update(cluster *clusterv1.Cluster, goalMachine *clusterv1.Machine) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL