From d2312c478645af883589c586dbe443dc71200792 Mon Sep 17 00:00:00 2001 From: NohaIhab Date: Thu, 28 Sep 2023 11:41:03 +0000 Subject: [PATCH] feat: get images on track/2.1 --- tools/get-images.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/get-images.sh diff --git a/tools/get-images.sh b/tools/get-images.sh new file mode 100644 index 00000000..01bbd85b --- /dev/null +++ b/tools/get-images.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# +# This script returns list of container images that are managed by this charm and/or its workload +# +# dynamic list +IMAGE_LIST=() +IMAGE_LIST+=($(find -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;)) +printf "%s\n" "${IMAGE_LIST[@]}" \ No newline at end of file