Documentation
¶
Index ¶
- Constants
- func Deploy(ctx *util.Context) error
- func DeployMachineDeployments(ctx *util.Context) error
- func DeployWebhookConfiguration(ctx *util.Context) error
- func DestroyWorkers(ctx *util.Context) error
- func Ensure(ctx *util.Context) error
- func WaitForMachineController(client dynclient.Client) error
- func WaitForWebhook(client dynclient.Client) error
- func WaitReady(ctx *util.Context) error
- type AWSSpec
- type DigitalOceanSpec
- type GCESpec
- type HetznerSpec
- type OpenStackSpec
- type PacketSpec
Constants ¶
const ( MachineControllerNamespace = metav1.NamespaceSystem MachineControllerAppLabelKey = "app" MachineControllerAppLabelValue = "machine-controller" MachineControllerTag = "v1.1.8" )
MachineController related constants
const ( WebhookName = "machine-controller-webhook" WebhookAppLabelKey = "app" WebhookAppLabelValue = WebhookName WebhookTag = MachineControllerTag WebhookNamespace = metav1.NamespaceSystem )
MachineController Webhook related constants
Variables ¶
This section is empty.
Functions ¶
func DeployMachineDeployments ¶ added in v0.2.0
DeployMachineDeployments deploys MachineDeployments that create appropriate machines
func DeployWebhookConfiguration ¶
DeployWebhookConfiguration deploys MachineController webhook deployment on the cluster
func DestroyWorkers ¶ added in v0.7.0
DestroyWorkers destroys all MachineDeployment, MachineSet and Machine objects
func WaitForMachineController ¶ added in v0.2.0
WaitForMachineController waits for machine-controller-webhook to become running func WaitForMachineController(corev1Client corev1types.CoreV1Interface) error {
func WaitForWebhook ¶ added in v0.2.0
WaitForWebhook waits for machine-controller-webhook to become running
Types ¶
type AWSSpec ¶ added in v0.7.0
type AWSSpec struct {
AMI string `json:"ami"`
AvailabilityZone string `json:"availabilityZone"`
InstanceProfile string `json:"instanceProfile"`
Region string `json:"region"`
SecurityGroupIDs []string `json:"securityGroupIDs"`
SubnetID string `json:"subnetId"`
VPCID string `json:"vpcId"`
InstanceType *string `json:"instanceType"`
DiskSize *int `json:"diskSize"`
Tags map[string]string `json:"tags"`
}
AWSSpec holds cloudprovider spec for AWS
type DigitalOceanSpec ¶ added in v0.7.0
type DigitalOceanSpec struct {
Region string `json:"region"`
Size string `json:"size"`
Backups bool `json:"backups"`
IPv6 bool `json:"ipv6"`
PrivateNetworking bool `json:"private_networking"`
Monitoring bool `json:"monitoring"`
Tags []string `json:"tags"`
}
DigitalOceanSpec holds cloudprovider spec for DigitalOcean
type GCESpec ¶ added in v0.7.0
type GCESpec struct {
DiskSize int `json:"diskSize"`
DiskType string `json:"diskType"`
MachineType string `json:"machineType"`
Network string `json:"network"`
Subnetwork string `json:"subnetwork"`
Zone string `json:"zone"`
Preemptible bool `json:"preemptible"`
AssignPublicIPAddress *bool `json:"assignPublicIPAddress"`
Labels map[string]string `json:"labels"`
Tags []string `json:"tags"`
MultiZone *bool `json:"multizone"`
Regional *bool `json:"regional"`
}
GCESpec holds cloudprovider spec for GCE
type HetznerSpec ¶ added in v0.7.0
type HetznerSpec struct {
ServerType string `json:"serverType"`
Datacenter string `json:"datacenter"`
Location string `json:"location"`
}
HetznerSpec holds cloudprovider spec for Hetzner
type OpenStackSpec ¶ added in v0.7.0
type OpenStackSpec struct {
Image string `json:"image"`
Flavor string `json:"flavor"`
SecurityGroups []string `json:"securityGroups"`
FloatingIPPool string `json:"floatingIPPool"`
AvailabilityZone string `json:"availabilityZone"`
Network string `json:"network"`
Subnet string `json:"subnet"`
Tags map[string]string `json:"tags"`
}
OpenStackSpec holds cloudprovider spec for OpenStack
type PacketSpec ¶ added in v0.7.0
type PacketSpec struct {
ProjectID string `json:"projectID"`
Facilities []string `json:"facilities"`
InstanceType string `json:"instanceType"`
}
PacketSpec holds cloudprovider spec for Packet