cluster

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlInterface

type ControlInterface interface {
	// UpdateOnecloudCluster implements the control logic for resource creation, update, and deletion
	UpdateOnecloudCluster(cluster *v1alpha1.OnecloudCluster) error
}

ControlInterface implements the control logic for updating OnecloudClusters and their children Deployments or StatefulSets.

func NewDefaultOnecloudClusterControl

func NewDefaultOnecloudClusterControl(
	ocControl controller.ClusterControlInterface,
	configManager *config.ConfigManager,
	certsManager *certs.CertsManager,
	componentManager *component.ComponentManager,
	recorder record.EventRecorder,
) ControlInterface

NewDefaultOnecloudClusterControl returns a new instance of the default implementation ControlInterface that implements for OnecloudClusters.

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller controls onecloudclusters.

func NewController

func NewController(
	kubeCli kubernetes.Interface,
	kubeExtCli apiextensionsclient.Interface,
	cli versioned.Interface,
	informerFactory informers.SharedInformerFactory,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
) *Controller

NewController creates a onecloudcluster controller

func (*Controller) InitCRDResource

func (c *Controller) InitCRDResource() error

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{})

Run runs the onecloud cluster controller.

Jump to

Keyboard shortcuts

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