machine

package
v0.0.0-...-243b762 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudConfigPath = "/etc/cloud/cloud_config.yaml"

	UserDataKey          = "userData"
	DisableTemplatingKey = "disableTemplating"
	PostprocessorKey     = "postprocessor"

	TimeoutInstanceCreate       = 5
	TimeoutInstanceDelete       = 5
	RetryIntervalInstanceStatus = 10 * time.Second
)
View Source
const InstanceStatusAnnotationKey = "instance-status"

Variables

This section is empty.

Functions

func GetMachineIfExists

func GetMachineIfExists(c client.Client, namespace, name string) (*machinev1.Machine, error)

Get a `machinev1.Machine` matching the specified name and namespace.

Same as cluster-api's `util.GetMachineIfExists`, but works with `machinev1` instead of `clusterv1`. The latter does not work with OpenShift deployments.

Types

type OpenstackClient

type OpenstackClient struct {
	*openstack.DeploymentClient
	// contains filtered or unexported fields
}

func NewActuator

func NewActuator(params openstack.ActuatorParams) (*OpenstackClient, error)

func (*OpenstackClient) Create

func (oc *OpenstackClient) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) error

func (*OpenstackClient) Delete

func (oc *OpenstackClient) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) error

func (*OpenstackClient) Exists

func (oc *OpenstackClient) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) (bool, error)

func (*OpenstackClient) Update

func (oc *OpenstackClient) Update(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) error

Jump to

Keyboard shortcuts

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