From 646230ef1c2915f4e540c50c611bcebb6a908f46 Mon Sep 17 00:00:00 2001 From: Ivan Chvets Date: Mon, 28 Aug 2023 15:54:56 -0400 Subject: [PATCH] feat: get images on main https://github.com/canonical/bundle-kubeflow/issues/679 Summary of changes: - Added script that produces list of container images managed by charm in this repository. Image list is a dynamic list. --- tools/get-images.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tools/get-images.sh diff --git a/tools/get-images.sh b/tools/get-images.sh new file mode 100755 index 00000000..a64a0e04 --- /dev/null +++ b/tools/get-images.sh @@ -0,0 +1,9 @@ +#!/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[@]}" +