FEAT(bin): show install revision instead of revision pattern
This commit is contained in:
parent
9e98dd83c7
commit
0e63579ebf
1 changed files with 6 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue