Merge "Add configuration option for enforcement models"

This commit is contained in:
Zuul 2018-05-01 18:11:53 +00:00 committed by Gerrit Code Review
commit ec338a3374
1 changed files with 12 additions and 0 deletions

View File

@ -47,6 +47,17 @@ be useful to tune if you have a large number of unified limits in your
deployment.
"""))
enforcement_model = cfg.StrOpt(
'enforcement_model',
default='flat',
choices=['flat'],
help=utils.fmt("""
The enforcement model to use when validating limits associated to projects.
Enforcement models will behave differently depending on the existing limits,
which may result in backwards incompatible changes if a model is switched in a
running deployment.
"""))
GROUP_NAME = __name__.split('.')[-1]
ALL_OPTS = [
@ -54,6 +65,7 @@ ALL_OPTS = [
caching,
cache_time,
list_limit,
enforcement_model,
]