Allow cluster leave endpoint to remove any node in the cluster

This commit is contained in:
Ingo Oppermann
2024-06-07 11:28:54 +02:00
parent 0f344f1998
commit 1a64fddbb1
8 changed files with 117 additions and 10 deletions

View File

@@ -860,6 +860,17 @@ const docTemplate = `{
],
"summary": "Leave the cluster gracefully",
"operationId": "cluster-3-leave",
"parameters": [
{
"description": "Node ID",
"name": "nodeid",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/api.ClusterNodeID"
}
}
],
"responses": {
"200": {
"description": "OK",
@@ -5043,6 +5054,14 @@ const docTemplate = `{
}
}
},
"api.ClusterNodeID": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"api.ClusterNodeResources": {
"type": "object",
"properties": {