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[@]}" +