Skip to content

Commit

Permalink
fix: get images on main
Browse files Browse the repository at this point in the history
#162

Summary of changes:
- Added scrip to retrieve images referenced in kserve
  • Loading branch information
Ivan Chvets committed Sep 1, 2023
1 parent df07548 commit 1b71f1a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/get-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
#
# This script returns list of container images that are managed by this charm and/or its workload
#
# dynamic list
IMAGE_LIST=()
# only scan kserve-controller to avoid retrieving incorrect image from kserve-web-app
# details are in https://github.com/canonical/bundle-kubeflow/issues/674
IMAGE_LIST+=($(find charms/kserve-controller/ -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;))
IMAGE_LIST+=($(yq '.[]' ./charms/kserve-controller/src/default-custom-images.json | sed 's/"//g'))
printf "%s\n" "${IMAGE_LIST[@]}"

0 comments on commit 1b71f1a

Please sign in to comment.