📚 / Documentation / Reconciliation Webhook


Overview

The reconciliation Webhook is an HTTP server, listening for POST requests from klander.

It allows you to implement a complex business logic to determine the reconciliation action to take.

Request/Response Schema

State Reconciliation Request

On each resource needing reconciliation, a POST request will be sent to the specified webhook.

The following body will be sent as JSON:

apiVersion: datapio.co/v1
kind: StateReconciliationRequest
spec:
  object: # the non-compliant resource

State Reconciliation Response

The webhook's response MUST be a JSON object validating this schema:

API GroupVersionKind
datapio.cov1StateReconciliationResponse
FieldTypeDescription
apiVersionstringKubernetes resource API version
kindstringKubernetes resource kind
specResponse SpecSpecification of the desired behavior

Response Spec

Delete reconciliation

FieldTypeDescription
deletebooleanIf true, non-compliant resources will be deleted

Patch reconciliation

FieldTypeDescription
patchobjectThe patch to apply on each non-compliant resources