mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-13 15:46:53 +00:00
admin api: implement ClusterLayoutSkipDeadNodes and use it in CLI
This commit is contained in:
@@ -157,6 +157,40 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v2/ClusterLayoutSkipDeadNodes": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Cluster layout"
|
||||
],
|
||||
"description": "Force progress in layout update trackers",
|
||||
"operationId": "ClusterLayoutSkipDeadNodes",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ClusterLayoutSkipDeadNodesRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Request has been taken into account",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ClusterLayoutSkipDeadNodesResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal server error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v2/ConnectClusterNodes": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@@ -1624,6 +1658,44 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"ClusterLayoutSkipDeadNodesRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"version",
|
||||
"allowMissingData"
|
||||
],
|
||||
"properties": {
|
||||
"allowMissingData": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"ClusterLayoutSkipDeadNodesResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"ackUpdated",
|
||||
"syncUpdated"
|
||||
],
|
||||
"properties": {
|
||||
"ackUpdated": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"syncUpdated": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ClusterLayoutVersion": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
Reference in New Issue
Block a user