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