From da44e4c5c839eeb39cf689f301904e5f23b09e98 Mon Sep 17 00:00:00 2001 From: i-chvets <113444075+i-chvets@users.noreply.github.com> Date: Mon, 4 Sep 2023 11:54:45 -0400 Subject: [PATCH] fix: get images on main (#164) Add script to retrieve images referenced in kserve. Refs #162 --- tools/get-images.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/get-images.sh b/tools/get-images.sh index d2e470a1..fd091caa 100644 --- a/tools/get-images.sh +++ b/tools/get-images.sh @@ -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[@]}"