Support pulling of schema2 manifests directly via a manifest list tag
This change ensures that if a manifest list is requested with an accepts header for a *schema 2* manifest, the legacy manifest (if any) is returned as schema 2 if it was pushed as a schema 2 manifest (rather than being auto-converted to schema 1)
This commit is contained in:
parent
a35982f2be
commit
3c2e050593
14 changed files with 215 additions and 15 deletions
|
@ -322,3 +322,10 @@ class RegistryDataInterface(object):
|
|||
""" Returns a cached set of ISO country codes blacklisted for pulls for the namespace
|
||||
or None if the list could not be loaded.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def convert_manifest(self, manifest, namespace_name, repo_name, tag_name, allowed_mediatypes,
|
||||
storage):
|
||||
""" Attempts to convert the specified into a parsed manifest with a media type
|
||||
in the allowed_mediatypes set. If not possible, or an error occurs, returns None.
|
||||
"""
|
||||
|
|
Reference in a new issue