controller

package
v0.0.0-...-53eff13 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 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 Config

type Config struct {
	CACert     *x509.Certificate
	Key        *rsa.PrivateKey
	Kubeconfig string
	Namespace  string
}

Config is the configuration for a notebook controller.

type Controller

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

Controller encapsulates the logic for reconciling the desired state of notebooks as defined by notebook CRDs and the state of notebook resources in the cluster.

func New

func New(cfg Config) *Controller

New creates a new instance of a notebook controller and returns a pointer to the struct.

func (*Controller) Run

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

Run starts the reconciliation loop of the notebook controller.

Jump to

Keyboard shortcuts

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