1
0
mirror of https://github.com/openshift/image-registry.git synced 2026-02-05 09:45:55 +01:00

8 Commits

Author SHA1 Message Date
Flavian Missi
f9d93c44be pkg,test: import distribution/distribution/v3
instead of the deprecated docker/distribution
2023-06-19 12:06:47 +02:00
Forrest Babcock
81fae2eb92 Revert "Merge pull request #370 from flavianmissi/bump-docker-distribution"
This reverts commit b095928ea9, reversing
changes made to 92c7270360.
2023-06-16 10:37:39 -04:00
Flavian Missi
342cc1a242 pkg,test: import distribution/distribution/v3
instead of the deprecated docker/distribution
2023-06-13 12:03:23 +02:00
Oleg Bulatov
5d5c5d2d54 Support pull-through for manifest lists
pkg/imagestream should use layers API when it needs to know about
sub-manifests.
2023-01-13 23:25:03 +01:00
Oleg Bulatov
8eb3cdf2bb error getting secrets: <nil>
Assigning a typed nil to the error interface gives a non-nil value.

That breaks the common pattern `if nil != nil { ... }`.

To avoid this problem, NewError should return an interface.
2020-06-05 18:03:40 +02:00
Oleg Bulatov
c5c35c3e3b Use standard context package 2018-08-27 17:09:06 +02:00
Gladkov Alexey
c91b15cdff New error policy
* Internal modules return only their own errors. All downstream errors
are converted. In this case, the module needs to check only N-1 level
errors.

* Do not convert errors from internal functions. They must return the
correct errors.

* When converting an error with loss of context, it is necessary to
write the previous error to the log.

Signed-off-by: Gladkov Alexey <agladkov@redhat.com>
2018-07-06 12:14:12 +02:00
Oleg Bulatov
b51c745113 Add custom error for problems with pullthrough 2018-06-04 17:52:07 +02:00