controllers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	// Run instructs the workers to start processing items from the queue.
	Run(ctx context.Context) error
}

Controller represents a controller that handles Kubernetes resources.

type IngressController

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

IngressController is the controller for Ingress resources.

func NewIngressController

func NewIngressController(kubeClient kubernetes.Interface, er record.EventRecorder, ingressInformer extsv1beta1informers.IngressInformer, serviceInformer corev1informers.ServiceInformer, kubeCache dklbcache.KubernetesResourceCache, edgelbManager manager.EdgeLBManager, secretsReflector secretsreflector.SecretsReflector) *IngressController

NewIngressController creates a new instance of the EdgeLB ingress controller.

func (*IngressController) Run

func (c *IngressController) Run(ctx context.Context) error

type ServiceController

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

func NewServiceController

func NewServiceController(kubeClient kubernetes.Interface, er record.EventRecorder, serviceInformer corev1informers.ServiceInformer, kubeCache dklbcache.KubernetesResourceCache, edgelbManager manager.EdgeLBManager) *ServiceController

NewServiceController creates a new instance of the EdgeLB service controller.

func (*ServiceController) Run

func (c *ServiceController) Run(ctx context.Context) error

type WorkItem

type WorkItem struct {
	// Key is the key of the Kubernetes resource being synced.
	Key string
	// Tombstone is the tombstone (i.e. last known state) of the Kubernetes resource being synced.
	Tombstone interface{}
}

WorkItem represents an item that is placed onto the controller's work queue. It is a pairing between the "namespace/name" key corresponding to a given Kubernetes resource and the resource's tombstone in case the resource has been deleted.

Jump to

Keyboard shortcuts

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