Skip to content

Commit

Permalink
feat: get images on main (#124)
Browse files Browse the repository at this point in the history
* feat: get images on main
canonical/bundle-kubeflow#679

Summary of changes:
- Added script that produces list of container images managed by charm in this repository. Image list is a dynamic list.
- Removed outdated get-images-1.7-stable.sh script.
  • Loading branch information
i-chvets authored Sep 2, 2023
1 parent 3c600d0 commit cd6890c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tools/get-images-1.7-stable.sh → tools/get-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
#
# This script returns list of container images that are managed by this charm and/or its workload
#
# static list
STATIC_IMAGE_LIST=(
)
# dynamic list
git checkout origin/track/3.3
IMAGE_LIST=()
IMAGE_LIST+=($(find -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;))
VERSION=$(grep upstream-source charms/argo-controller/metadata.yaml | awk -F':' '{print $3}')
IMAGE_LIST+=($(grep "executor_image =" charms/argo-controller/src/charm.py | awk '{print $3}' | sed s/f//g | sed s/\"//g | sed s/{version}/$VERSION/g))

printf "%s\n" "${STATIC_IMAGE_LIST[@]}"
IMAGE_LIST+=($(yq '.options.executor-image.default' ./charms/argo-controller/config.yaml))
printf "%s\n" "${IMAGE_LIST[@]}"

0 comments on commit cd6890c

Please sign in to comment.