Skip to content

Commit

Permalink
feat: get images on main (#289)
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.

Co-authored-by: Phoevos Kalemkeris <phoevos.kalemkeris@canonical.com>
  • Loading branch information
i-chvets and phoevos authored Sep 2, 2023
1 parent 9bc50cf commit 7c91c69
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tools/get-images-1.7-stable.sh

This file was deleted.

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=()
IMAGE_LIST+=($(find . -type f -name metadata.yaml -exec yq '.resources | to_entries | .[] | .value | ."upstream-source"' {} \;))
IMAGE_LIST+=($(yq '.options | .jupyter-images | .default' charms/jupyter-ui/config.yaml | yq '.[]'))
IMAGE_LIST+=($(yq '.options | .rstudio-images | .default' charms/jupyter-ui/config.yaml | yq '.[]'))
IMAGE_LIST+=($(yq '.options | .vscode-images | .default' charms/jupyter-ui/config.yaml | yq '.[]'))
printf "%s\n" "${IMAGE_LIST[@]}"

0 comments on commit 7c91c69

Please sign in to comment.