controller

package
v0.0.0-...-09c7815 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccessSynced             = "Synced"
	MessageResourceSynced     = "configMap synced successfully"
	ErrCallingURL             = "Fail to retrieve message from URL"
	ErrParsingAnnotationValue = "Cannot parse x-k8s.io/curl-me-that annotation value"
)

Event messages

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller struct for curlme controller

func New

func New(
	kubeclientset kubernetes.Interface,
	configMapInformer cmInformer.ConfigMapInformer) *Controller

New initiate a new controller

func (*Controller) Run

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

Run start controller reconciliation loop

func (*Controller) SetConfigMapSynced

func (c *Controller) SetConfigMapSynced(value cache.InformerSynced)

SetConfigMapSynced setter for cache synced

func (*Controller) SetRecorder

func (c *Controller) SetRecorder(r record.EventRecorder)

SetRecorder setter for recorder

func (*Controller) SyncHandler

func (c *Controller) SyncHandler(key string) error

SyncHandler reconciliation loop

Jump to

Keyboard shortcuts

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