cluster

package
v0.0.0-...-87ef7df Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterController

func NewClusterController(clientset versioned.Interface, kubeClientset kubernetes.Interface) controller.Controller

NewClusterController returns new cluster controller.

Types

type Event

type Event string

Event represents an event processed by cluster controller.

const (
	ClusterAdded   Event = "Added"
	ClusterUpdated Event = "Updated"
	ClusterDeleted Event = "Deleted"
)

Available event types.

type FakeClusterController

type FakeClusterController struct {
	*operator.FakeClusterOperator
	// contains filtered or unexported fields
}

FakeClusterController can be used as a cluster controller in tests. It simulates the cluster controller behaviour with fake clientsets and a fake cluster operator.

func NewFakeClusterController

func NewFakeClusterController(size int) (*watch.FakeWatcher, *FakeClusterController)

NewFakeClusterController returns new operator controller among with prepended watcher. Created controller uses fake clientSets and operator. Size indicates watcher events channel buffer.

func (FakeClusterController) Run

func (c FakeClusterController) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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