1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

feat: allow enterprise override for constraint values limit (#7502)

This commit is contained in:
Mateusz Kwasniewski 2024-07-01 15:45:13 +02:00 committed by GitHub
parent 57b253c050
commit 054b44a8dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -655,7 +655,7 @@ export function createConfig(options: IUnleashOptions): IUnleashConfig {
),
constraintValues: parseEnvVarNumber(
process.env.UNLEASH_CONSTRAINT_VALUES_LIMIT,
250,
options?.resourceLimits?.constraintValues || 250,
),
environments: parseEnvVarNumber(
process.env.UNLEASH_ENVIRONMENTS_LIMIT,

View File

@ -141,6 +141,7 @@ export interface IUnleashOptions {
metricsRateLimiting?: Partial<IMetricsRateLimiting>;
dailyMetricsStorageDays?: number;
rateLimiting?: Partial<IRateLimiting>;
resourceLimits?: Partial<Pick<ResourceLimitsSchema, 'constraintValues'>>;
}
export interface IEmailOption {