controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControllerManager

func NewControllerManager() (manager.Manager, error)

NewControllerManager creates the pod controller and returns its manager so that it could be started.

Types

type PodReconciler

type PodReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

func NewPodReconciler

func NewPodReconciler(mgr manager.Manager, peerEvents chan *peers.PeerEvent) (*PodReconciler, error)

func (*PodReconciler) Create

func (p *PodReconciler) Create(ev event.CreateEvent) bool

Create handles pod Create events.

func (*PodReconciler) Delete

func (p *PodReconciler) Delete(ev event.DeleteEvent) bool

Delete handles pod Delete events.

func (*PodReconciler) Generic

func (p *PodReconciler) Generic(ge event.GenericEvent) bool

Generic handles pod events that are neither Create, Update or Delete.

func (*PodReconciler) Reconcile

func (p *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*PodReconciler) Update

func (p *PodReconciler) Update(ev event.UpdateEvent) bool

Update handes Update events.

Jump to

Keyboard shortcuts

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