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 ¶
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.
Click to show internal directories.
Click to hide internal directories.