Deployments
Preview

Get what differs from the snapshot a deployment runs

The objects, and the fields of each, that the operator last found different from what Wardn applied, on each cluster the deployment runs on. Only fields Wardn owns count: a field another controller owns, such as an autoscaler's replica count, is never drift. An empty list means no drift.

GET
/deployments/{deploymentId}/drift
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid

Response Body

The deployment's current drift.

application/json
  1. response
recorded*|

The history event the drift was recorded as; null when there is no drift.

deploymentId*string
Formatuuid
drift*
clusters*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/drift'
Example Response
{  "recorded": {    "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",    "contentId": "string",    "detectedAt": "2019-08-24T14:15:22Z"  },  "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",  "drift": {    "status": "none",    "count": 0  },  "clusters": [    {      "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8",      "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",      "checkedAt": "2019-08-24T14:15:22Z",      "objects": [        {          "appId": "28c365d5-df94-4a54-8217-3ce51d068868",          "appName": "string",          "group": "string",          "version": "string",          "kind": "string",          "namespace": "string",          "name": "string",          "missing": true,          "fields": [            {              "path": "string",              "desired": "string",              "live": "string"            }          ]        }      ]    }  ]}