Merge pull request #42965 from thaJeztah/do_not_retry
distribution: do not retry unsupported layer media types
This commit is contained in:
commit
229bc1ee8b
1 changed files with 1 additions and 1 deletions
|
@ -466,7 +466,7 @@ func (pd *v2PushDescriptor) uploadUsingSession(
|
|||
case schema2.MediaTypeLayer:
|
||||
default:
|
||||
reader.Close()
|
||||
return distribution.Descriptor{}, fmt.Errorf("unsupported layer media type %s", m)
|
||||
return distribution.Descriptor{}, xfer.DoNotRetry{Err: fmt.Errorf("unsupported layer media type %s", m)}
|
||||
}
|
||||
|
||||
digester := digest.Canonical.Digester()
|
||||
|
|
Loading…
Reference in a new issue