controller

package
v1.0.2-0...-81fcf91 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const HealthEvent = "" /* 324-byte string literal not displayed */

Variables

This section is empty.

Functions

func IsHealthCheckRequest

func IsHealthCheckRequest(req ctrl.Request) bool

Types

type FunctionReconciler

type FunctionReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	Log             *zap.SugaredLogger
	Config          config.FunctionConfig
	LastCommitCache cache.Cache
	EventRecorder   record.EventRecorder
	HealthCh        chan bool
}

FunctionReconciler reconciles a Function object

func (*FunctionReconciler) Reconcile

func (fr *FunctionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*FunctionReconciler) SetupWithManager

func (fr *FunctionReconciler) SetupWithManager(mgr ctrl.Manager) (controller.Controller, error)

SetupWithManager sets up the controller with the Manager.

type HealthChecker

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

func NewHealthChecker

func NewHealthChecker(timeout time.Duration, logger *zap.SugaredLogger) (HealthChecker, chan event.GenericEvent, chan bool)

func (HealthChecker) Checker

func (h HealthChecker) Checker(req *http.Request) error

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

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