Skip to main content

Reconcilable

@webda/kubernetes


Interface: Reconcilable

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

A model reconciled by the KubernetesOperator

Methods​

finalize()?​

optional finalize(): Promise<void>

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

Clean up before the object is deleted, when the operator has a finalizer

Returns​

Promise<void>


reconcile()​

reconcile(): Promise<WorkResult>

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

Bring the world in line with the object: called when its spec changes, on resync and again after a failure

The object can be changed (this.patch(...)): a spec change is reconciled again.

Returns​

Promise<WorkResult>

nothing, or a delay to reconcile again