Skip to content

Commit

Permalink
fix: get images on main (#164)
Browse files Browse the repository at this point in the history
Add script to retrieve images referenced in kserve.

Refs #162
  • Loading branch information
i-chvets authored and misohu committed Sep 26, 2023
1 parent 2ad7af9 commit da44e4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/get-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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+=($(grep image charms/kserve-controller/src/templates/serving_runtimes_manifests.yaml.j2 | awk '{print $2}' | sort --unique))
IMAGE_LIST+=($(grep image charms/kserve-controller/src/templates/configmap_manifests.yaml.j2 | awk '{print $3}' | sort --unique | sed s/,//g | sed s/\"//g))
IMAGE_LIST+=($(yq '.[]' ./charms/kserve-controller/src/default-custom-images.json | sed 's/"//g'))
printf "%s\n" "${IMAGE_LIST[@]}"

0 comments on commit da44e4c

Please sign in to comment.