Show version and supported extra features in custom headers
This MRs addresses the need to determine the type of container registry to drive future prioritization and user-experience decisions.
It adds two new headers to the GET /v2/ response:
-
Gitlab-Container-Registry-Version: The semantic version of the GitLab Container Registry (e.g.2.9.0-gitlab); -
Gitlab-Container-Registry-Features: A comma separated list of extensions/features that are not part of the Docker Distribution spec (e.g.tag_delete,...).
Although we initially planned to use the OPTIONS method, this method is meant to detect which HTTP methods a path supports, and the GET method on /v2/ is already implemented and its sole purpose is to check for API compatibility, so it makes sense to extend it instead.
Related to gitlab#204839 (closed).
Edited by João Pereira