From df31e8a2aa56ba9baef2278c1ab4c56642b36aad Mon Sep 17 00:00:00 2001 From: Orfeas Kourkakis Date: Tue, 26 Sep 2023 11:31:21 +0300 Subject: [PATCH] backport: Update get-images script according main branch Get script up-to-date with `main` branch. This summarizes changes introduced in PRs #106 and #124. --- tools/get-images.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) mode change 100644 => 100755 tools/get-images.sh diff --git a/tools/get-images.sh b/tools/get-images.sh old mode 100644 new mode 100755 index dccec31..ee3ab2c --- a/tools/get-images.sh +++ b/tools/get-images.sh @@ -5,6 +5,5 @@ IMAGE_LIST=() IMAGE_LIST+=($(find -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;)) VERSION=$(grep upstream-source charms/argo-controller/metadata.yaml | awk -F':' '{print $3}') -IMAGE_LIST+=($(grep "executor_image =" charms/argo-controller/src/charm.py | awk '{print $3}' | sed s/f//g | sed s/\"//g | sed s/{version}/$VERSION/g)) +IMAGE_LIST+=($(yq '.options.executor-image.default' ./charms/argo-controller/config.yaml)) printf "%s\n" "${IMAGE_LIST[@]}" -