Deployments
Preview

Stop reporting a field as drift

Adds a standing rule for one object of the deployment and a JSON pointer in it, which also covers the fields below the pointer. The drift on record is filtered at once and the rule goes to the operator with the next apply.

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

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

deploymentId*string
Formatuuid
Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
object*
pointer*string

An RFC 6901 JSON pointer to the field, such as /spec/replicas.

reason?string
Lengthlength <= 1024

Response Body

The rule.

application/json
  1. response
id*string
Formatuuid
deploymentId*string
Formatuuid
object*
pointer*string
reason*string
createdBy*string
createdAt*string
Formatdate-time
Example Request
curl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/drift/ignores' \  -H 'Content-Type: application/json' \  -d '{  "object": {    "group": "string",    "version": "string",    "kind": "string",    "namespace": "string",    "name": "string"  },  "pointer": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",  "object": {    "group": "string",    "version": "string",    "kind": "string",    "namespace": "string",    "name": "string"  },  "pointer": "string",  "reason": "string",  "createdBy": "string",  "createdAt": "2019-08-24T14:15:22Z"}