Determine container registry vendor, version and features on self-managed instances
Following a suggestion from @twk3 (gitlab-org/gitlab#204839 (comment 306387518)) we decided to add a new rake task to the GitLab application that will attempt to detect the vendor, version and features of the container registry being used in self-managed instances. This was done in gitlab-org/gitlab!31697 (merged), which has now been merged (missed 13.0, will be released in 13.1).
The Rake task will query the registry API and then populate a set of fields in the application_settings
database table. We can then use these for metrics and to toggle features only supported by the GitLab Container Registry and no other vendor.
We now need this Rake task to be run from Omnibus reconfigure and from Helm install. For source installs we need to document the need to run this task manually after a fresh install or when the registry vendor has changed.
Note: We had an issue for this in gitlab-org/gitlab
(gitlab-org/gitlab#214251), but given that the required changes left are only related to Distribution, and no more GitLab application changes are required, I believe it's better to raise it here? If so we can close gitlab-org/gitlab#214251 to avoid duplication.