router

package
v1.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, obj runtime.Object, routeFunc func(runtime.Object) bool, newEndpoint endpoint.NewEndpoint)

Register registers an endpoint

func SetupWithManagerAndConfigs

func SetupWithManagerAndConfigs(c client.Client, mgr ctrl.Manager, cfg *config.ChaosControllerConfig) error

SetupWithManagerAndConfigs setups reconciler with manager and controller configs

Types

type Reconciler

type Reconciler struct {
	Name            string
	Object          runtime.Object
	Endpoints       []routeEndpoint
	ClusterScoped   bool
	TargetNamespace string

	ctx.Context
}

Reconciler reconciles a chaos resource

func NewReconciler

func NewReconciler(name string, object runtime.Object, c client.Client, mgr ctrl.Manager, endpoints []routeEndpoint, clusterScoped bool, targetNamespace string) *Reconciler

NewReconciler creates a new reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request) (result ctrl.Result, err error)

Reconcile reconciles a chaos resource

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers controller to manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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