cluster

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWithActuator

func AddWithActuator(mgr manager.Manager, actuator Actuator) error

Types

type Actuator

type Actuator interface {
	// Reconcile creates or applies updates to the cluster.
	Reconcile(*clusterv1.Cluster) error
	// Delete the cluster.
	Delete(*clusterv1.Cluster) error
}

/ Actuator Actuator controls clusters on a specific infrastructure. All methods should be idempotent unless otherwise specified.

var DefaultActuator Actuator

type ReconcileCluster

type ReconcileCluster struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileCluster reconciles a Cluster object

func (*ReconcileCluster) Reconcile

func (r *ReconcileCluster) Reconcile(request reconcile.Request) (reconcile.Result, error)

+kubebuilder:rbac:groups=cluster.k8s.io,resources=clusters,verbs=get;list;watch;create;update;patch;delete

type TestActuator

type TestActuator struct {
	BlockOnReconcile   bool
	BlockOnDelete      bool
	ReconcileCallCount int64
	DeleteCallCount    int64
	Lock               sync.Mutex
	// contains filtered or unexported fields
}

func (*TestActuator) Delete

func (a *TestActuator) Delete(*v1alpha1.Cluster) error

func (*TestActuator) Reconcile

func (a *TestActuator) Reconcile(*v1alpha1.Cluster) error

func (*TestActuator) Unblock

func (a *TestActuator) Unblock()

Jump to

Keyboard shortcuts

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