Clusters
Preview

Change a cluster's operator settings

Changes only the fields sent. Each kind of change, a capability turned on or off, the upgrade channel, auto-upgrade and the tuning, is an Activity entry, and a connected operator is told at once through the settings push. A capability cannot be turned on while it is unavailable; turning it off alway

PATCH
/clusters/{clusterId}/operator
cookiebetter-auth.session_token<token>

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

clusterId*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

The fields to change; the others stay as they are.

channel?string
Value in"stable""fast"
autoUpgrade?boolean
tuning?
capabilities?

Response Body

The operator after the change.

application/json
  1. response
operator*

The cluster's operator as Wardn last saw it.

latestVersion*string

The operator release that matches this server, empty for a development build.

channel*string
Value in"stable""fast"
autoUpgrade*boolean

Whether the operator should upgrade itself inside the environment's deploy window. It is recorded and shown; the upgrade itself is not carried out by Wardn yet.

capabilities*array<>

Every capability, in the order screens list them.

tuning*

How hard the operator works.

components*array<>

Empty until the operator reports its components.

updatedAt*|

Null while the cluster has the defaults.

Formatdate-time
Example Request
curl -X PATCH 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/operator' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "operator": {    "version": "1.4.2",    "protocolVersion": 0,    "online": true,    "lastHeartbeatAt": "2019-08-24T14:15:22Z",    "firstConnectedAt": "2019-08-24T14:15:22Z",    "connectedAt": "2019-08-24T14:15:22Z",    "lastDisconnect": {      "at": "2019-08-24T14:15:22Z",      "reason": "string",      "durationSeconds": 0    },    "refused": {      "reason": "revoked",      "since": "2019-08-24T14:15:22Z",      "lastAt": "2019-08-24T14:15:22Z"    },    "upgrade": {      "needed": true,      "reason": "current"    }  },  "latestVersion": "string",  "channel": "stable",  "autoUpgrade": true,  "capabilities": [    {      "capability": "apply",      "enabled": true,      "available": true,      "unavailableReason": "operator_not_connected"    }  ],  "tuning": {    "driftCheckSeconds": 0,    "applyConcurrency": 0,    "renderLocation": "cluster",    "limits": {      "driftCheckSeconds": {        "min": 0,        "max": 0      },      "applyConcurrency": {        "min": 0,        "max": 0      }    }  },  "components": [    {      "name": "string",      "version": "string",      "replicas": 0,      "readyReplicas": 0,      "status": "healthy",      "cpuMillis": 0,      "memoryBytes": 0,      "note": "string",      "reportedAt": "2019-08-24T14:15:22Z"    }  ],  "updatedAt": "2019-08-24T14:15:22Z"}