Merge pull request #2119 from giuseppe/chunked-ignore-layer-unknown

chunked: ignore ErrLayerUnknown when creating cache
This commit is contained in:
openshift-merge-bot[bot] 2024-09-30 10:56:29 +00:00 committed by GitHub
commit 603ff90cd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ func (c *layersCache) load() error {
// the cache file is either not present or broken. Try to generate it from the TOC.
l, err = c.createCacheFileFromTOC(r.ID)
if err != nil {
if err != nil && !errors.Is(err, storage.ErrLayerUnknown) {
logrus.Warningf("Error creating cache file for layer %q: %v", r.ID, err)
}
if l != nil {