retinaendpointcontroller

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REQUEST_TIMEOUT = 15 * time.Second
	MAX_RETRIES     = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RetinaEndpointReconciler

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

RetinaEndpointReconciler managed the lifecycle of RetinaEndpoints from Pods.

func New

func New(client client.Client, podchannel chan cache.PodCacheObject) *RetinaEndpointReconciler

func (*RetinaEndpointReconciler) ReconcilePod

func (r *RetinaEndpointReconciler) ReconcilePod(pctx context.Context)

NOTE(mainrerd): Chances are that pod cache channel lost pods events during controller manager restart, we need to have full-set reconciliation to make sure all RetinaEndpoints are reconciled to Pods. when a pod reaches here, it indicates that there is a metricsconfiguration that references it, or doesn't and a RetinaEndpoint needs to be created or updated. This is a blocking function, and will wait on the pod channel until a pod is received.

Jump to

Keyboard shortcuts

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