Skip to content

Commit

Permalink
feat: get images on main
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ivan Chvets committed Aug 29, 2023
1 parent 694acc0 commit 4071dae
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tools/get-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,5 @@
IMAGE_LIST=()
IMAGE_LIST+=($(find . -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;))
IMAGE_LIST+=($(yq '.options.executor-container-image-and-version.default' config.yaml))
IMAGE_LIST+=($(yq e ".data.predictor_servers" src/templates/configmap.yaml.j2 | jq -r '.[]' | jq -r 'select((.protocols.v2)) | "\(.protocols.v2.image):\(.protocols.v2.defaultImageVersion)"'))
IMAGE_LIST+=($(yq e ".data.predictor_servers" src/templates/configmap.yaml.j2 | jq -r '.[]' | jq -r 'select((.protocols.seldon)) | "\(.protocols.seldon.image):\(.protocols.seldon.defaultImageVersion)"'))
IMAGE_LIST+=($(yq '.options | ."executor-container-image-and-version" | .default' config.yaml))
IMAGE_LIST+=($(yq e ".data.storageInitializer" src/templates/configmap.yaml.j2 | jq -r 'select((.image)) | "\(.image)"'))
IMAGE_LIST+=($(yq e ".data.explainer" src/templates/configmap.yaml.j2 | jq -r 'select((.image)) | "\(.image)"'))
IMAGE_LIST+=($(yq e ".data.explainer" src/templates/configmap.yaml.j2 | jq -r 'select((.image_v2)) | "\(.image_v2)"'))
IMAGE_LIST+=($(yq '.[]' ./src/default-custom-images.json | sed 's/"//g'))
printf "%s\n" "${IMAGE_LIST[@]}"

0 comments on commit 4071dae

Please sign in to comment.