actuators

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CAPIroleToKindRole

func CAPIroleToKindRole(CAPIRole string) string

CAPIroleToKindRole converts a CAPI role to kind role TODO there is a better way to do this.

Types

type Cluster

type Cluster struct {
	Log logr.Logger
}

Cluster defines a cluster actuator object

func (*Cluster) Delete

func (c *Cluster) Delete(cluster *clusterv1.Cluster) error

Delete can be used to delete a cluster

func (*Cluster) Reconcile

func (c *Cluster) Reconcile(cluster *clusterv1.Cluster) error

Reconcile setups an external load balancer for the cluster if needed

type Machine

type Machine struct {
	Core       corev1.CoreV1Interface
	ClusterAPI v1alpha1.ClusterV1alpha1Interface
	Log        logr.Logger
}

Machine defines a machine actuator type

func (*Machine) Create

func (m *Machine) Create(ctx context.Context, c *clusterv1.Cluster, machine *clusterv1.Machine) error

Create creates a machine for a given cluster Note: have to print all the errors because cluster-api swallows them

func (*Machine) Delete

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

Delete returns nil when the machine no longer exists or when a successful delete has happened.

func (*Machine) Exists

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

Exists returns true if a machine exists in the cluster

func (*Machine) Update

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

Update updates a machine

Jump to

Keyboard shortcuts

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