feat: added AI Platform Config json (#22449)

This commit is contained in:
Teddy 2025-07-21 08:04:51 +02:00 committed by GitHub
parent 589402b9e9
commit 37fc1bf8d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 70 additions and 0 deletions

View File

@ -31,6 +31,7 @@ import org.openmetadata.schema.api.security.AuthenticationConfiguration;
import org.openmetadata.schema.api.security.AuthorizerConfiguration;
import org.openmetadata.schema.api.security.OpsConfig;
import org.openmetadata.schema.api.security.jwt.JWTTokenConfiguration;
import org.openmetadata.schema.configuration.AiPlatformConfiguration;
import org.openmetadata.schema.configuration.LimitsConfiguration;
import org.openmetadata.schema.security.scim.ScimConfiguration;
import org.openmetadata.schema.security.secrets.SecretsManagerConfiguration;
@ -151,6 +152,9 @@ public class OpenMetadataApplicationConfig extends Configuration {
@JsonProperty("scimConfiguration")
private ScimConfiguration scimConfiguration;
@JsonProperty("aiPlatformConfiguration")
private AiPlatformConfiguration aiPlatformConfiguration;
@Override
public String toString() {
return "catalogConfig{"

View File

@ -0,0 +1,66 @@
{
"$id": "https://open-metadata.org/schema/configuration/aiPlatformConfiguration.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "AiPlatformConfiguration",
"description": "This schema defines the JWT Configuration.",
"type": "object",
"javaType": "org.openmetadata.schema.configuration.AiPlatformConfiguration",
"definitions": {
"grpcConfiguration": {
"javaType": "org.openmetadata.schema.configuration.GrpcConfiguration",
"type": "object",
"properties": {
"port": {
"description": "Host for the gRPC server",
"type": "integer"
},
"maxInboundMessageSize": {
"description": "Port for the gRPC server",
"type": "integer"
},
"keepAliveTime": {
"description": "Keep alive time for the gRPC server",
"type": "integer"
},
"keepAliveTimeout": {
"description": "Keep alive timeout for the gRPC server",
"type": "integer"
}
},
"required": ["port"]
}
},
"properties": {
"enabled": {
"description": "Indicates whether the AI Platform is enabled",
"type": "boolean",
"default": false
},
"host": {
"description": "Host for the AI Platform server",
"type": "string"
},
"port": {
"description": "Port for the AI Platform server",
"type": "integer"
},
"tlsCertPath": {
"description": "Path to the TLS certificate for the AI Platform server",
"type": "string"
},
"tlsKeyPath": {
"description": "Path to the TLS key for the AI Platform server",
"type": "string"
},
"trustedCertsPath": {
"description": "Path to the trusted CA certificate for the AI Platform server",
"type": "string"
},
"grpc": {
"description": "gRPC configuration for the AI Platform server",
"$ref": "#/definitions/grpcConfiguration"
}
},
"required": ["host", "port", "grpc"],
"additionalProperties": false
}