Tenant Logs (#1140)

Co-authored-by: Adam Stafford <adamstafford@Adams-MacBook-Pro.local>
This commit is contained in:
adfost
2022-01-11 15:18:31 -08:00
committed by GitHub
parent 3a0a2b14d9
commit 0400e0c6d5
32 changed files with 4093 additions and 25 deletions

View File

@@ -662,6 +662,80 @@ func init() {
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/disable-logging": {
"post": {
"tags": [
"OperatorAPI"
],
"summary": "Disable Tenant Logging",
"operationId": "DisableTenantLogging",
"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": "boolean"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/enable-logging": {
"post": {
"tags": [
"OperatorAPI"
],
"summary": "Enable Tenant Logging",
"operationId": "EnableTenantLogging",
"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": "boolean"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/encryption": {
"put": {
"tags": [
@@ -704,6 +778,86 @@ func init() {
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/log": {
"get": {
"tags": [
"OperatorAPI"
],
"summary": "Get Tenant Logs",
"operationId": "GetTenantLogs",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "tenant",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/tenantLogs"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
},
"put": {
"tags": [
"OperatorAPI"
],
"summary": "Set Tenant Logs",
"operationId": "SetTenantLogs",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "tenant",
"in": "path",
"required": true
},
{
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/tenantLogs"
}
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "boolean"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/monitoring": {
"get": {
"tags": [
@@ -3123,6 +3277,65 @@ func init() {
}
}
},
"tenantLogs": {
"type": "object",
"properties": {
"annotations": {
"type": "array",
"items": {
"$ref": "#/definitions/annotation"
}
},
"dbAnnotations": {
"type": "array",
"items": {
"$ref": "#/definitions/annotation"
}
},
"dbImage": {
"type": "string"
},
"dbLabels": {
"type": "array",
"items": {
"$ref": "#/definitions/label"
}
},
"dbNodeSelector": {
"type": "array",
"items": {
"$ref": "#/definitions/nodeSelector"
}
},
"dbServiceAccountName": {
"type": "string"
},
"disabled": {
"type": "boolean"
},
"diskCapacityGB": {
"type": "string"
},
"image": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"$ref": "#/definitions/label"
}
},
"nodeSelector": {
"type": "array",
"items": {
"$ref": "#/definitions/nodeSelector"
}
},
"serviceAccountName": {
"type": "string"
}
}
},
"tenantMonitoringInfo": {
"type": "object",
"properties": {
@@ -4073,6 +4286,80 @@ func init() {
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/disable-logging": {
"post": {
"tags": [
"OperatorAPI"
],
"summary": "Disable Tenant Logging",
"operationId": "DisableTenantLogging",
"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": "boolean"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/enable-logging": {
"post": {
"tags": [
"OperatorAPI"
],
"summary": "Enable Tenant Logging",
"operationId": "EnableTenantLogging",
"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": "boolean"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/encryption": {
"put": {
"tags": [
@@ -4115,6 +4402,86 @@ func init() {
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/log": {
"get": {
"tags": [
"OperatorAPI"
],
"summary": "Get Tenant Logs",
"operationId": "GetTenantLogs",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "tenant",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/tenantLogs"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
},
"put": {
"tags": [
"OperatorAPI"
],
"summary": "Set Tenant Logs",
"operationId": "SetTenantLogs",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "tenant",
"in": "path",
"required": true
},
{
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/tenantLogs"
}
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "boolean"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/tenants/{tenant}/monitoring": {
"get": {
"tags": [
@@ -7112,6 +7479,65 @@ func init() {
}
}
},
"tenantLogs": {
"type": "object",
"properties": {
"annotations": {
"type": "array",
"items": {
"$ref": "#/definitions/annotation"
}
},
"dbAnnotations": {
"type": "array",
"items": {
"$ref": "#/definitions/annotation"
}
},
"dbImage": {
"type": "string"
},
"dbLabels": {
"type": "array",
"items": {
"$ref": "#/definitions/label"
}
},
"dbNodeSelector": {
"type": "array",
"items": {
"$ref": "#/definitions/nodeSelector"
}
},
"dbServiceAccountName": {
"type": "string"
},
"disabled": {
"type": "boolean"
},
"diskCapacityGB": {
"type": "string"
},
"image": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"$ref": "#/definitions/label"
}
},
"nodeSelector": {
"type": "array",
"items": {
"$ref": "#/definitions/nodeSelector"
}
},
"serviceAccountName": {
"type": "string"
}
}
},
"tenantMonitoringInfo": {
"type": "object",
"properties": {