operator

package
v0.0.0-...-d1b097e Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ChartSynced is used as part of the Event 'reason' when the Chart related to the
	// a HelmRelease gets released/updated
	ChartSynced = "ChartSynced"
	// ErrChartSync is used as part of the Event 'reason' when the related Chart related to the
	// a HelmRelease fails to be released/updated
	ErrChartSync = "ErrChartSync"

	// MessageChartSynced - the message used for Events when a resource
	// fails to sync due to failing to release the Chart
	MessageChartSynced = "Chart managed by HelmRelease processed successfully"
	// MessageErrChartSync - the message used for an Event fired when a HelmRelease
	// is synced successfully
	MessageErrChartSync = "Chart %s managed by HelmRelease failed to be processed"
)
View Source
const (
	CacheSyncTimeout = 180 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller is the operator implementation for HelmRelease resources

func New

func New(
	logger log.Logger,
	logReleaseDiffs bool,
	kubeclientset kubernetes.Interface,
	fhrInformer fhrv1.HelmReleaseInformer,
	sync *chartsync.ChartChangeSync) *Controller

New returns a new helm-operator

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}, wg *sync.WaitGroup) error

Run sets up the event handlers for our Custom Resource, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

Jump to

Keyboard shortcuts

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