Support warming images by digest (#1629)

This commit is contained in:
Colin 2021-04-22 08:51:33 -10:00 committed by GitHub
parent ac1fc88081
commit b33f9655eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
pkg/cache/warm.go vendored
View File

@ -110,7 +110,7 @@ type Warmer struct {
// Warm retrieves a Docker image and populates the supplied buffer with the image content and manifest
// or returns an AlreadyCachedErr if the image is present in the cache.
func (w *Warmer) Warm(image string, opts *config.WarmerOptions) (v1.Hash, error) {
cacheRef, err := name.NewTag(image, name.WeakValidation)
cacheRef, err := name.ParseReference(image, name.WeakValidation)
if err != nil {
return v1.Hash{}, errors.Wrapf(err, "Failed to verify image name: %s", image)
}