controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package controller encapsulates kubernetes controller logic that powers Chronologist.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller watches configmaps (or secrets) that helm creates for each release and creates corresponding annotations in grafana.

func New

func New(log *zap.Logger, kubernetes kubernetes.Interface, grafana grafana.Annotator, opts Options) (*Controller, error)

New returns a new controller.

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{})

Run starts the controller.

type Options added in v0.2.0

type Options struct {
	MaxAge          time.Duration
	WatchConfigMaps bool
	WatchSecrets    bool
}

Options represent controller options.

Jump to

Keyboard shortcuts

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