controller

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoBuildID = errors.New("no build ID on secret")

ErrNoBuildID indicates that a secret does not have a build ID attached.

Functions

This section is empty.

Types

type Config added in v0.4.0

type Config struct {
	Namespace        string
	WorkerImage      string
	WorkerPullPolicy string
}

Config is config for setting Controller

type Controller

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

Controller listens for new brigade builds and starts the worker pods.

func NewController

func NewController(clientset kubernetes.Interface, config *Config) *Controller

NewController creates a new Controller.

func (*Controller) HasSynced

func (c *Controller) HasSynced() bool

HasSynced returns true if the controller has synced.

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh chan struct{})

Run executes the controller.

Jump to

Keyboard shortcuts

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