Add ability for proportional rollout of the OCI data model

This commit is contained in:
Joseph Schorr 2019-02-18 16:34:43 -05:00
parent 66ddf66fb0
commit 77d7600b64
4 changed files with 22 additions and 9 deletions

3
app.py
View file

@ -93,7 +93,8 @@ app.config.update(environ_config)
# Split the registry model based on config.
# TODO(jschorr): Remove once we are fully on the OCI data model.
registry_model.setup_split(app.config.get('OCI_NAMESPACE_WHITELIST') or set(),
registry_model.setup_split(app.config.get('OCI_NAMESPACE_PROPORTION') or 0,
app.config.get('OCI_NAMESPACE_WHITELIST') or set(),
app.config.get('V22_NAMESPACE_WHITELIST') or set())
# Allow user to define a custom storage preference for the local instance.