1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/distribution
Tibor Vass 99cd23cefd Revert "Remove the rest of v1 manifest support"
This reverts commit 98fc09128b in order to
keep registry v2 schema1 handling and libtrust-key-based engine ID.

Because registry v2 schema1 was not officially deprecated and
registries are still relying on it, this patch puts its logic back.

However, registry v1 relics are not added back since v1 logic has been
removed a while ago.

This also fixes an engine upgrade issue in a swarm cluster. It was relying
on the Engine ID to be the same upon upgrade, but the mentioned commit
modified the logic to use UUID and from a different file.

Since the libtrust key is always needed to support v2 schema1 pushes,
that the old engine ID is based on the libtrust key, and that the engine ID
needs to be conserved across upgrades, adding a UUID-based engine ID logic
seems to add more complexity than it solves the problems.

Hence reverting the engine ID changes as well.

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit f695e98cb7)
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-06-18 18:54:57 +00:00
..
fixtures/validate_manifest
metadata Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
utils Add canonical import comment 2018-02-05 16:51:57 -05:00
xfer Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
config.go Revert "Remove the rest of v1 manifest support" 2019-06-18 18:54:57 +00:00
errors.go Include original error when translating distribution errors 2018-08-03 16:12:44 +02:00
errors_test.go Various code-cleanup 2018-05-23 17:50:54 +02:00
oci.go Update containerd client to 1.2.4 2019-02-14 04:47:27 +01:00
pull.go distribution: fix passing platform struct to puller 2018-06-27 14:59:31 -07:00
pull_v1.go *: remove interfacer linter from CI 2019-03-13 11:48:39 +11:00
pull_v2.go Improve 'no matching manifest' error 2019-01-15 18:24:15 +01:00
pull_v2_test.go Improve 'no matching manifest' error 2019-01-15 18:24:15 +01:00
pull_v2_unix.go Improve 'no matching manifest' error 2019-01-15 18:24:15 +01:00
pull_v2_windows.go Improve 'no matching manifest' error 2019-01-15 18:24:15 +01:00
push.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
push_v1.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
push_v2.go Revert "Remove the rest of v1 manifest support" 2019-06-18 18:54:57 +00:00
push_v2_test.go Bump docker/distribution to 83389a148052d74ac602f5f1d62f86ff2f3c4aa5 2018-04-30 09:30:56 -07:00
registry.go Register OCI image media types 2018-06-28 18:19:15 -07:00
registry_unit_test.go distribution: fix passing platform struct to puller 2018-06-27 14:59:31 -07:00