From 0e63579ebfd21b7aff8b0b0317c67acb23cd872e Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Fri, 8 Apr 2022 18:35:57 +0200 Subject: [PATCH] FEAT(bin): show install revision instead of revision pattern --- bin/list_app_versions.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/list_app_versions.py b/bin/list_app_versions.py index 44bfac1..5f5cc8f 100755 --- a/bin/list_app_versions.py +++ b/bin/list_app_versions.py @@ -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))