FEAT(bin): show install revision instead of revision pattern

This commit is contained in:
Sebastian Mark 2022-04-08 18:35:57 +02:00
parent 9e98dd83c7
commit 0e63579ebf

View file

@ -49,9 +49,13 @@ def get_argo_as_app() -> dict:
"source": {
"chart": "argo-cd",
"repoURL": "https://argoproj.github.io/argo-helm",
"targetRevision": version,
},
},
"status": {
"sync": {
"revision": version,
}
},
}
)
@ -75,7 +79,7 @@ def main():
name = app["metadata"]["name"]
chart = app["spec"]["source"]["chart"]
repo_url = app["spec"]["source"]["repoURL"]
installed = app["spec"]["source"]["targetRevision"]
installed = app["status"]["sync"]["revision"]
latest = get_latest_version(repo_url, chart)
print("{:<20}{:<15}{:<10}".format(name, installed, latest))