Skip to main content

ControllerOptions

@webda/kubernetes


Interface: ControllerOptions

Defined in: kubernetes/src/operator/controller.ts:58

Options of a model controller

Properties​

concurrency​

concurrency: number

Defined in: kubernetes/src/operator/controller.ts:62

Keys reconciled at the same time


finalizer?​

optional finalizer?: string

Defined in: kubernetes/src/operator/controller.ts:74

Finalizer added to the objects, to call finalize before they are deleted


maxBackoff​

maxBackoff: number

Defined in: kubernetes/src/operator/controller.ts:70

Maximum milliseconds before reconciling again an object that failed


maxRetries​

maxRetries: number

Defined in: kubernetes/src/operator/controller.ts:78

Attempts of a status or finalizer write on conflicts


onError?​

optional onError?: (name, err, delay) => void

Defined in: kubernetes/src/operator/controller.ts:86

Called when a reconciliation fails

Parameters​

name​

string

err​

unknown

delay​

number

Returns​

void


onQueueDepth?​

optional onQueueDepth?: (depth) => void

Defined in: kubernetes/src/operator/controller.ts:90

Called when the queue depth changes

Parameters​

depth​

number

Returns​

void


onReconciled?​

optional onReconciled?: (result, duration) => void

Defined in: kubernetes/src/operator/controller.ts:82

Called after each reconciliation

Parameters​

result​

"error" | "success"

duration​

number

Returns​

void


resyncPeriod​

resyncPeriod: number

Defined in: kubernetes/src/operator/controller.ts:66

Milliseconds between two reconciliations of every object