Is there a way to get sha256 image digests from Argo CD API?

4/10/2020

I've explored Argo CD APIs from documentation, so far call to /api/v1/applications gives me images but without sha256 digests. Meaning I cannot be sure in exact version of the running image (say if the tag is set to latest or if there are multiple images per tag).

Same happened when I tried to use /api/v1/applications/appname/resource-tree or /api/v1/applications/appname.

Would appreciate if somebody could point me to some other call or way (maybe via cli) to retrieve sha256 digests of images (if that option exists).

UPDATE: Apparently it gives me sha256 if I explicitly add it in the spec, but if I use image without sha256, it wouldn't give me sha256 - wondering if there is an option for this case.

-- taleodor
argocd
devops
kubernetes

0 Answers