google

package
v0.0.0-...-811ab7b Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectAnnotationKey = "gcp-project"
	ZoneAnnotationKey    = "gcp-zone"
	NameAnnotationKey    = "gcp-name"

	UIDLabelKey       = "machine-crd-uid"
	BootstrapLabelKey = "boostrap"
)
View Source
const (
	ServiceAccountPrefix    = "k8s-machine-controller-"
	ServiceAccount          = "service-account"
	MachineControllerSecret = "machine-controller-credential"
	ServiceAccountNs        = "kube-system"
)
View Source
const (
	MachineControllerSshKeySecret = "machine-controller-sshkeys"
	// Arbitrary name used for SSH.
	SshUser                = "clusterapi"
	SshKeyFile             = "clusterapi-key"
	SshKeyFilePublic       = SshKeyFile + ".pub"
	SshKeyFilePublicGcloud = SshKeyFilePublic + ".gcloud"
)
View Source
const InstanceStatusAnnotationKey = "instance-status"

Variables

This section is empty.

Functions

func CreateMachineControllerPod

func CreateMachineControllerPod(token string) error

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 GCEClient

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

func NewMachineActuator

func NewMachineActuator(kubeadmToken string, machineClient client.MachinesInterface) (*GCEClient, error)

func (*GCEClient) Create

func (gce *GCEClient) Create(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

func (*GCEClient) CreateMachineController

func (gce *GCEClient) CreateMachineController(cluster *clusterv1.Cluster, initialMachines []*clusterv1.Machine) error

func (*GCEClient) CreateMachineControllerServiceAccount

func (gce *GCEClient) CreateMachineControllerServiceAccount(cluster *clusterv1.Cluster, initialMachines []*clusterv1.Machine) error

Creates a GCP service account for the machine controller, granted the permissions to manage compute instances, and stores its credentials as a Kubernetes secret.

func (*GCEClient) Delete

func (gce *GCEClient) Delete(machine *clusterv1.Machine) error

func (*GCEClient) DeleteMachineControllerServiceAccount

func (gce *GCEClient) DeleteMachineControllerServiceAccount(cluster *clusterv1.Cluster, machines []*clusterv1.Machine) error

func (*GCEClient) Exists

func (gce *GCEClient) Exists(machine *clusterv1.Machine) (bool, error)

func (*GCEClient) GetIP

func (gce *GCEClient) GetIP(machine *clusterv1.Machine) (string, error)

func (*GCEClient) GetKubeConfig

func (gce *GCEClient) GetKubeConfig(master *clusterv1.Machine) (string, error)

func (*GCEClient) PostDelete

func (gce *GCEClient) PostDelete(cluster *clusterv1.Cluster, machines []*clusterv1.Machine) error

func (*GCEClient) Update

func (gce *GCEClient) Update(cluster *clusterv1.Cluster, goalMachine *clusterv1.Machine) error

type SshCreds

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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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