Is there a way to map a digest to a tag?
Given an image for which we know its digest, I would like to map it to its corresponding tag.
The easiest way I found is to use manifest section from tags/list output , e.g:
curl -s https://k8s.gcr.io/v2/kube-apiserver/tags/list | jq '.manifest["sha256:ffdc2f826e3de98608d7e9b41ca0015ec45f066687491142d18a2879fb4a0c22"].tag'
[
"v1.17.13"
]