controller

package
v0.0.0-...-e995ff0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "crypt-controller"

	// SuccessSynced is used as part of the Event 'reason' when a Crypt is synced
	SuccessSynced = "Synced"

	// MessageResourceSynced is the message used for an Event fired when a Crypt is synced successfully
	MessageResourceSynced = "Crypt synced successfully"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(
	kubeClientset kubernetes.Interface,
	cryptClientset clientset.Interface,
	namespaceInformer coreinformers.NamespaceInformer,
	secreteInformer coreinformers.SecretInformer,
	cryptInformer informers.CryptInformer,
	store store.Store,
	opts ...Option,
) *Controller

func (*Controller) Run

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

type Option

type Option func(*Controller)

func WithEventRecorder

func WithEventRecorder(recorder record.EventRecorder) Option

Jump to

Keyboard shortcuts

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