Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to map digest to tag #214

Open
adriananeci opened this issue Sep 20, 2021 · 0 comments
Open

Add option to map digest to tag #214

adriananeci opened this issue Sep 20, 2021 · 0 comments

Comments

@adriananeci
Copy link

adriananeci commented Sep 20, 2021

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"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant