controller

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVersionOutdated = errors.New("requested version is outdated in apiserver")

	// Workaround for watching CR resource.
	// TODO: remove this to use CR client.
	KubeHttpCli *http.Client
	MasterHost  string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace      string
	ServiceAccount string
	PVProvisioner  string
	s3config.S3Context
	KubeCli    kubernetes.Interface
	KubeExtCli apiextensionsclient.Interface
}

func (*Config) Validate added in v0.2.0

func (c *Config) Validate() error

type Controller

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

func New

func New(cfg Config) *Controller

func (*Controller) Run

func (c *Controller) Run() error

type Event

type Event struct {
	Type   kwatch.EventType
	Object *spec.EtcdCluster
}

Jump to

Keyboard shortcuts

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