-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor, chore: move TAGGED_IMAGE away from charm code, add tools/ge…
…t-images.sh (#51) * refactor: move TAGGED_IMAGE from charm code to config.yaml This commit removes the TAGGED_IMAGE variable from the charm code and places the image to be used as a configuration option for the charm. * chore: add tools/get-images.sh to gather images from this charm This commit adds the support script for gathering the images this charm uses. Part of canonical/bundle-kubeflow#1084
- Loading branch information
Showing
5 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
set -xe | ||
|
||
IMAGE_LIST=() | ||
IMAGE_LIST+=($(find -type f -name config.yaml -exec yq '.options | with_entries(select(.key | test("-image$"))) | .[].default' {} \; | tr -d '"')) | ||
printf "%s\n" "${IMAGE_LIST[@]}" | ||
|