Adding list of pods (#715)

* changing delete button

* committing so I can swich branches

* adding pods

* showing only pods with given tenant

* pull request fixes

* changing pod selection algorithm

* changed the pods API

* Delete admin.json

* Update portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx

Co-authored-by: Alex <33497058+bexsoft@users.noreply.github.com>

* Update portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx

Co-authored-by: Alex <33497058+bexsoft@users.noreply.github.com>

Co-authored-by: Lenin Alevski <alevsk.8772@gmail.com>
Co-authored-by: Adam Stafford <adam@minio.io>
Co-authored-by: Alex <33497058+bexsoft@users.noreply.github.com>
This commit is contained in:
adfost
2021-05-06 18:57:14 -07:00
committed by GitHub
parent cc52e267eb
commit 281f8d553a
17 changed files with 1115 additions and 20 deletions

View File

@@ -2642,6 +2642,46 @@ func init() {
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/pods": {
"get": {
"tags": [
"AdminAPI"
],
"summary": "Get Pods For The Tenant",
"operationId": "GetTenantPods",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "tenant",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/tenantPod"
}
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/pools": {
"put": {
"tags": [
@@ -6332,14 +6372,29 @@ func init() {
}
}
},
"tenantResponseItem": {
"tenantPod": {
"type": "object",
"required": [
"name"
],
"properties": {
"access_key": {
"name": {
"type": "string"
},
"secret_key": {
"node": {
"type": "string"
},
"podIP": {
"type": "string"
},
"restarts": {
"type": "integer"
},
"status": {
"type": "string"
},
"timeCreated": {
"type": "integer"
}
}
},
@@ -9362,6 +9417,46 @@ func init() {
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/pods": {
"get": {
"tags": [
"AdminAPI"
],
"summary": "Get Pods For The Tenant",
"operationId": "GetTenantPods",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "tenant",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/tenantPod"
}
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/pools": {
"put": {
"tags": [
@@ -13518,14 +13613,29 @@ func init() {
}
}
},
"tenantResponseItem": {
"tenantPod": {
"type": "object",
"required": [
"name"
],
"properties": {
"access_key": {
"name": {
"type": "string"
},
"secret_key": {
"node": {
"type": "string"
},
"podIP": {
"type": "string"
},
"restarts": {
"type": "integer"
},
"status": {
"type": "string"
},
"timeCreated": {
"type": "integer"
}
}
},