mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-09 15:32:25 +00:00
Generated configs (#6167)
* [Backend][Improvement] Using Generated Configurations files * [Backend][Improvement] Test failure * [Backend][Improvement] Update Descriptions * [Backend][Improvement] Config Resource Test Failure Fix * [Backend][Config] adding suggested comments
This commit is contained in:
parent
fe0f9d88e9
commit
809143b08f
@ -35,101 +35,57 @@ import org.openmetadata.catalog.security.jwt.JWTTokenConfiguration;
|
|||||||
import org.openmetadata.catalog.slack.SlackPublisherConfiguration;
|
import org.openmetadata.catalog.slack.SlackPublisherConfiguration;
|
||||||
import org.openmetadata.catalog.slackChat.SlackChatConfiguration;
|
import org.openmetadata.catalog.slackChat.SlackChatConfiguration;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
public class CatalogApplicationConfig extends Configuration {
|
public class CatalogApplicationConfig extends Configuration {
|
||||||
private static final String DATABASE_CONFIG = "database";
|
@JsonProperty("database")
|
||||||
private static final String SWAGGER_CONFIG = "swagger";
|
|
||||||
private static final String AUTHORIZER_CONFIG = "authorizerConfiguration";
|
|
||||||
private static final String AUTHENTICATION_CONFIG = "authenticationConfiguration";
|
|
||||||
private static final String JWT_CONFIG = "jwtTokenConfiguration";
|
|
||||||
private static final String ELASTIC_CONFIG = "elasticsearch";
|
|
||||||
private static final String EVENTHANDLER_CONFIG = "eventHandlerConfiguration";
|
|
||||||
private static final String AIRFLOW_CONFIG = "airflowConfiguration";
|
|
||||||
private static final String SLACK_CONFIG = "slackEventPublishers";
|
|
||||||
private static final String FERNET_CONFIG = "fernetConfiguration";
|
|
||||||
private static final String HEALTH_CONFIG = "health";
|
|
||||||
private static final String MIGRATION_CONFIG = "migrationConfiguration";
|
|
||||||
private static final String SANDBOXMODE_CONFIG = "sandboxModeEnabled";
|
|
||||||
private static final String SLACK_CHAT_CONFIG = "slackChat";
|
|
||||||
private static final String SECRET_MANAGER_CONFIG = "secretsManagerConfiguration";
|
|
||||||
|
|
||||||
@JsonProperty(DATABASE_CONFIG)
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Valid
|
@Valid
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private DataSourceFactory dataSourceFactory;
|
private DataSourceFactory dataSourceFactory;
|
||||||
|
|
||||||
@JsonProperty(SWAGGER_CONFIG)
|
@JsonProperty("swagger")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private SwaggerBundleConfiguration swaggerBundleConfig;
|
private SwaggerBundleConfiguration swaggerBundleConfig;
|
||||||
|
|
||||||
@JsonProperty(AUTHORIZER_CONFIG)
|
@JsonProperty("authorizerConfiguration")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private AuthorizerConfiguration authorizerConfiguration;
|
private AuthorizerConfiguration authorizerConfiguration;
|
||||||
|
|
||||||
@JsonProperty(AUTHENTICATION_CONFIG)
|
@JsonProperty("authenticationConfiguration")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private AuthenticationConfiguration authenticationConfiguration;
|
private AuthenticationConfiguration authenticationConfiguration;
|
||||||
|
|
||||||
@JsonProperty(JWT_CONFIG)
|
@JsonProperty("jwtTokenConfiguration")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private JWTTokenConfiguration jwtTokenConfiguration;
|
private JWTTokenConfiguration jwtTokenConfiguration;
|
||||||
|
|
||||||
@JsonProperty(ELASTIC_CONFIG)
|
@JsonProperty("elasticsearch")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private ElasticSearchConfiguration elasticSearchConfiguration;
|
private ElasticSearchConfiguration elasticSearchConfiguration;
|
||||||
|
|
||||||
@JsonProperty(EVENTHANDLER_CONFIG)
|
@JsonProperty("eventHandlerConfiguration")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private EventHandlerConfiguration eventHandlerConfiguration;
|
private EventHandlerConfiguration eventHandlerConfiguration;
|
||||||
|
|
||||||
@JsonProperty(AIRFLOW_CONFIG)
|
@JsonProperty("airflowConfiguration")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private AirflowConfiguration airflowConfiguration;
|
private AirflowConfiguration airflowConfiguration;
|
||||||
|
|
||||||
@JsonProperty(SLACK_CONFIG)
|
@JsonProperty("slackEventPublishers")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private List<SlackPublisherConfiguration> slackEventPublishers;
|
private List<SlackPublisherConfiguration> slackEventPublishers;
|
||||||
|
|
||||||
@JsonProperty(MIGRATION_CONFIG)
|
@JsonProperty("migrationConfiguration")
|
||||||
@NotNull
|
@NotNull
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private MigrationConfiguration migrationConfiguration;
|
private MigrationConfiguration migrationConfiguration;
|
||||||
|
|
||||||
@JsonProperty(FERNET_CONFIG)
|
@JsonProperty("fernetConfiguration")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private FernetConfiguration fernetConfiguration;
|
private FernetConfiguration fernetConfiguration;
|
||||||
|
|
||||||
@JsonProperty(HEALTH_CONFIG)
|
@JsonProperty("health")
|
||||||
@NotNull
|
@NotNull
|
||||||
@Valid
|
@Valid
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private HealthConfiguration healthConfiguration = new HealthConfiguration();
|
private HealthConfiguration healthConfiguration = new HealthConfiguration();
|
||||||
|
|
||||||
@JsonProperty(SANDBOXMODE_CONFIG)
|
@JsonProperty("sandboxModeEnabled")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private boolean sandboxModeEnabled;
|
private boolean sandboxModeEnabled;
|
||||||
|
|
||||||
@JsonProperty(SLACK_CHAT_CONFIG)
|
@JsonProperty("slackChat")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private SlackChatConfiguration slackChatConfiguration = new SlackChatConfiguration();
|
private SlackChatConfiguration slackChatConfiguration = new SlackChatConfiguration();
|
||||||
|
|
||||||
@JsonProperty(SECRET_MANAGER_CONFIG)
|
@JsonProperty("secretsManagerConfiguration")
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private SecretsManagerConfiguration secretsManagerConfiguration;
|
private SecretsManagerConfiguration secretsManagerConfiguration;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user