Add PVC describe API (#2007)

This commit is contained in:
Javier Adriel
2022-05-17 19:02:53 -05:00
committed by GitHub
parent 448a80af4a
commit f6cab5a65b
9 changed files with 1019 additions and 0 deletions

View File

@@ -1485,6 +1485,49 @@ func init() {
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/pvcs/{PVCName}/describe": {
"get": {
"tags": [
"OperatorAPI"
],
"summary": "Get Describe output for PVC",
"operationId": "GetPVCDescribe",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "tenant",
"in": "path",
"required": true
},
{
"type": "string",
"name": "PVCName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/describePVCWrapper"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/pvcs/{PVCName}/events": {
"get": {
"tags": [
@@ -2352,6 +2395,56 @@ func init() {
}
}
},
"describePVCWrapper": {
"type": "object",
"properties": {
"accessModes": {
"type": "array",
"items": {
"type": "string"
}
},
"annotations": {
"type": "array",
"items": {
"$ref": "#/definitions/annotation"
}
},
"capacity": {
"type": "string"
},
"finalizers": {
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"type": "array",
"items": {
"$ref": "#/definitions/label"
}
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"status": {
"type": "string"
},
"storageClass": {
"type": "string"
},
"volume": {
"type": "string"
},
"volumeMode": {
"type": "string"
}
}
},
"describePodWrapper": {
"type": "object",
"properties": {
@@ -5985,6 +6078,49 @@ func init() {
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/pvcs/{PVCName}/describe": {
"get": {
"tags": [
"OperatorAPI"
],
"summary": "Get Describe output for PVC",
"operationId": "GetPVCDescribe",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "tenant",
"in": "path",
"required": true
},
{
"type": "string",
"name": "PVCName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/describePVCWrapper"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/pvcs/{PVCName}/events": {
"get": {
"tags": [
@@ -7695,6 +7831,56 @@ func init() {
}
}
},
"describePVCWrapper": {
"type": "object",
"properties": {
"accessModes": {
"type": "array",
"items": {
"type": "string"
}
},
"annotations": {
"type": "array",
"items": {
"$ref": "#/definitions/annotation"
}
},
"capacity": {
"type": "string"
},
"finalizers": {
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"type": "array",
"items": {
"$ref": "#/definitions/label"
}
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"status": {
"type": "string"
},
"storageClass": {
"type": "string"
},
"volume": {
"type": "string"
},
"volumeMode": {
"type": "string"
}
}
},
"describePodWrapper": {
"type": "object",
"properties": {