Documentation ¶
Index ¶
- Constants
- func CreateMachineControllerPod(token string) error
- func PreloadMasterScript(version string, dockerImages []string) (string, error)
- func PreloadNodeScript(version string, dockerImages []string) (string, error)
- type GCEClient
- func (gce *GCEClient) Create(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
- func (gce *GCEClient) CreateMachineController(cluster *clusterv1.Cluster, initialMachines []*clusterv1.Machine) error
- func (gce *GCEClient) CreateMachineControllerServiceAccount(cluster *clusterv1.Cluster, initialMachines []*clusterv1.Machine) error
- func (gce *GCEClient) Delete(machine *clusterv1.Machine) error
- func (gce *GCEClient) DeleteMachineControllerServiceAccount(cluster *clusterv1.Cluster, machines []*clusterv1.Machine) error
- func (gce *GCEClient) Exists(machine *clusterv1.Machine) (bool, error)
- func (gce *GCEClient) GetIP(machine *clusterv1.Machine) (string, error)
- func (gce *GCEClient) GetKubeConfig(master *clusterv1.Machine) (string, error)
- func (gce *GCEClient) PostDelete(cluster *clusterv1.Cluster, machines []*clusterv1.Machine) error
- func (gce *GCEClient) Update(cluster *clusterv1.Cluster, goalMachine *clusterv1.Machine) error
- type SshCreds
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 PreloadMasterScript ¶
PreloadMasterScript 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) CreateMachineController ¶
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) DeleteMachineControllerServiceAccount ¶
func (*GCEClient) GetKubeConfig ¶
func (*GCEClient) PostDelete ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.