Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updated get-images script #327

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions tools/get-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
#
# This script returns list of container images that are managed by this charm and/or its workload
#
# static list
STATIC_IMAGE_LIST=(
docker.io/istio/pilot:1.17.3
)
# dynamic list
IMAGE_LIST=()
IMAGE_LIST+=($(grep image charms/istio-gateway/src/manifest.yaml | awk '{print $2}' | sort --unique))
printf "%s\n" "${STATIC_IMAGE_LIST[@]}"
printf "%s\n" "${IMAGE_LIST[@]}"
IMAGE_LIST+=($(yq '.[] | .proxy-image.default' ./charms/istio-gateway/config.yaml))
PROXY_IMAGE=$(yq '.[] | .image-configuration.default' ./charms/istio-pilot/config.yaml | yq '.global-proxy-image')
PILOT_IMAGE=$(yq '.[] | .image-configuration.default' ./charms/istio-pilot/config.yaml | yq '.pilot-image')
HUB=$(yq '.[] | .image-configuration.default' ./charms/istio-pilot/config.yaml | yq '.global-hub')
TAG=$(yq '.[] | .image-configuration.default' ./charms/istio-pilot/config.yaml | yq '.global-tag')
IMAGE_LIST+=($(echo $HUB/$PROXY_IMAGE:$TAG))
IMAGE_LIST+=($(echo $HUB/$PILOT_IMAGE:$TAG))
printf "%s\n" "${IMAGE_LIST[@]}" | sort -u
Loading