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
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
clusterId*stringuuidIdempotency-Key?stringMakes 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.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
The fields to change; the others stay as they are.
channel?string"stable""fast"autoUpgrade?booleantuning?capabilities?The operator after the change.
application/json- response
operator*The cluster's operator as Wardn last saw it.
latestVersion*stringThe operator release that matches this server, empty for a development build.
channel*string"stable""fast"autoUpgrade*booleanWhether 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.
date-timecurl -X PATCH 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/operator' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}Get a cluster's operator GET
What the Operator tab shows: the operator's version and connection, its upgrade channel, whether it upgrades itself, each capability with whether the operator can do it, its tuning, and the components it last reported. A capability the operator did not list in its Hello, or that the cluster's settin
List a cluster's connection history GET
When the cluster's operator connected and when its connection ended, with the reason, newest first. A disconnect says how long the cluster stayed disconnected, or null while it still is.