cluster

package
v0.0.0-...-811ab7b Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterController

type ClusterController struct {
	Name string

	BeforeReconcile func(key string)
	AfterReconcile  func(key string, err error)

	Informers *sharedinformers.SharedInformers
	// contains filtered or unexported fields
}

ClusterController implements the controller.ClusterController interface

func NewClusterController

func NewClusterController(config *rest.Config, si *sharedinformers.SharedInformers) *ClusterController

NewController returns a new ClusterController for responding to Cluster events

func (*ClusterController) GetName

func (c *ClusterController) GetName() string

func (*ClusterController) LookupAndReconcile

func (c *ClusterController) LookupAndReconcile(key string) (err error)

func (*ClusterController) Run

func (c *ClusterController) Run(stopCh <-chan struct{})

type ClusterControllerImpl

type ClusterControllerImpl struct {
	builders.DefaultControllerFns
	// contains filtered or unexported fields
}

+controller:group=cluster,version=v1alpha1,kind=Cluster,resource=clusters

func (*ClusterControllerImpl) Get

func (c *ClusterControllerImpl) Get(namespace, name string) (*v1alpha1.Cluster, error)

func (*ClusterControllerImpl) Init

Init initializes the controller and is called by the generated code Register watches for additional resource types here.

func (*ClusterControllerImpl) Reconcile

func (c *ClusterControllerImpl) Reconcile(u *v1alpha1.Cluster) error

Reconcile handles enqueued messages

Jump to

Keyboard shortcuts

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