k8s-digester icon indicating copy to clipboard operation
k8s-digester copied to clipboard

Improve error message on tag resolution failure

Open halvards opened this issue 4 years ago • 1 comments

Digester currently uses HEAD requests to look up image digests.

If the image registry returns an error, there is no response body to provide additional information about the error.

As long as the HTTP status code was not 429, digester could fall back to a GET request in order to get the error message and surface it to the user.

halvards avatar Mar 10 '21 23:03 halvards

This has already been implemented in the gcrane package, please see https://github.com/google/go-containerregistry/blob/main/pkg/crane/digest.go#L45

newtondev avatar Sep 30 '24 08:09 newtondev