Skip to content

Commit

Permalink
chore: add tools/get-images.sh to gather images from this charm (#69)
Browse files Browse the repository at this point in the history
This commit adds the support script for gathering the images this charm uses.

Part of canonical/bundle-kubeflow#1084
  • Loading branch information
DnPlas authored Oct 8, 2024
1 parent 2f747a6 commit 66485b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/get-images.sh
Original file line number Diff line number Diff line change
@@ -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[@]}"

0 comments on commit 66485b3

Please sign in to comment.