Clusters
Preview

Get a cluster's settings

GET
/clusters/{clusterId}/settings
cookiebetter-auth.session_token<token>

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

clusterId*string
Formatuuid

Response Body

The settings. A cluster nobody has configured has the defaults.

application/json
  1. response
namespacePreparation*

What the cluster's operator says its own RBAC lets it do to prepare a deployment's namespace (make it, make the service account and role binding in it, and bind the wardn-preview-deployer and admin ClusterRoles).

labelUsage*array<>

The cluster's labels by key, each with the guardrails that select clusters by it. Guardrails arrive with M3, so every list is empty for now; the field is here so screens can show "Used by" already.

namespaces*
neverManaged*array<string>

Namespaces Wardn never manages, whatever the mode.

secretsProvider*string
Value in"none""sops""eso"
agentSandboxes*boolean

Whether agents run in the cluster (their runtime is installed there and jobs may be placed on it). On a production cluster it needs the warning acknowledged first.

prepareNamespaces*boolean

Whether Wardn prepares a deployment's namespace before it applies there: the namespace, a wardn-deployer service account and a role binding to the admin ClusterRole. On by default for development and staging clusters, off for production, until someone chooses. Turning it on is refused (409, cluster.settings.prepare_unsupported) while the operator says it cannot prepare namespaces.

agentsProductionAcknowledgedAt*|

When someone acknowledged the warning for agents on this production cluster. Null until then, and again after the cluster becomes production. Always null on a cluster that is not production.

Formatdate-time
updatedAt*|

Null while the cluster has the defaults.

Formatdate-time
Example Request
curl -X GET 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/settings'
Example Response
{  "namespacePreparation": {    "status": "unknown",    "missing": [      "string"    ],    "reportedAt": "2019-08-24T14:15:22Z"  },  "labelUsage": [    {      "key": "string",      "value": "string",      "guardrails": [        {          "id": "string",          "name": "string"        }      ]    }  ],  "namespaces": {    "mode": "all",    "names": [      "string"    ]  },  "neverManaged": [    "string"  ],  "secretsProvider": "none",  "agentSandboxes": true,  "prepareNamespaces": true,  "agentsProductionAcknowledgedAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}