Documentation ¶
Index ¶
- func CAPIroleToKindRole(CAPIRole string) string
- type Cluster
- type Machine
- func (m *Machine) Create(ctx context.Context, c *clusterv1.Cluster, machine *clusterv1.Machine) error
- func (m *Machine) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
- func (m *Machine) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error)
- func (m *Machine) Update(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CAPIroleToKindRole ¶
CAPIroleToKindRole converts a CAPI role to kind role TODO there is a better way to do this.
Types ¶
type Cluster ¶
Cluster defines a cluster actuator object
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.
Click to show internal directories.
Click to hide internal directories.