controller

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 19 Imported by: 5

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
	KubeCli        corev1client.CoreV1Interface
	KubeExtCli     apiextensionsclient.Interface
	OperatorCli    natsalphav2client.PkgSpecInterface
}

func (*Config) Validate

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(ctx context.Context) error

type Event

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

Jump to

Keyboard shortcuts

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