test

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FooBarReconciler

type FooBarReconciler struct {
	Client client.Client
	// to avoid race conditions with the cache, listing matching webhook items
	// needs to use a direct client
	DirectClient  client.Client
	Log           *zap.SugaredLogger
	Scheme        *runtime.Scheme
	EventRecorder record.EventRecorder
}

func (*FooBarReconciler) CheckSetup

func (r *FooBarReconciler) CheckSetup(ctx context.Context, mgr ctrl.Manager, logger *zap.SugaredLogger) error

func (FooBarReconciler) Name

func (FooBarReconciler) Name() string

return trigger reconciler name

func (*FooBarReconciler) Reconcile

func (r *FooBarReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile for Trigger should be implemented in each plugin

func (*FooBarReconciler) Setup

func (r *FooBarReconciler) Setup(ctx context.Context, mgr ctrl.Manager, logger *zap.SugaredLogger) error

Setup will setup webhook and controller

func (*FooBarReconciler) SetupWithManager

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

SetupTrigger sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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