Add config to enable "public" namespaces

These are namespaces that will be displayed in the repo list view, regardless of whether the user is a member.
This commit is contained in:
Joseph Schorr 2017-08-07 15:59:06 -04:00
parent dff4207a89
commit 650dbe5f5b
3 changed files with 19 additions and 4 deletions

View file

@ -273,6 +273,12 @@ class DefaultConfig(ImmutableConfig):
# rather than only write access or admin access.
FEATURE_READER_BUILD_LOGS = False
# If a namespace is defined in the public namespace list, then it will appear on *all*
# user's repository list pages, regardless of whether that user is a member of the namespace.
# Typically, this is used by an enterprise customer in configuring a set of "well-known"
# namespaces.
PUBLIC_NAMESPACES = []
# The namespace to use for library repositories.
# Note: This must remain 'library' until Docker removes their hard-coded namespace for libraries.
# See: https://github.com/docker/docker/blob/master/registry/session.go#L320