Skip to content

Commit

Permalink
Handle image overrides for the nettest image
Browse files Browse the repository at this point in the history
This requires handling multiple components for a given container image
because the nettest image is used for both the tests and the metrics
proxy.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt committed Jan 9, 2025
1 parent ecd1b75 commit 1d5468a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/shared/lib/deploy_operator
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ component_by_image['submariner-operator']=submariner-operator
component_by_image['submariner-route-agent']=submariner-routeagent
component_by_image['lighthouse-agent']=submariner-lighthouse-agent
component_by_image['lighthouse-coredns']=submariner-lighthouse-coredns
component_by_image['nettest']="submariner-metrics-proxy submariner-nettest"

### Functions ###

Expand Down Expand Up @@ -67,9 +68,11 @@ function subctl_install_subm() {
[[ "$AIR_GAPPED" = true ]] && extra_flags+=(--repository "${SUBM_IMAGE_REPO}" --version "${SUBM_IMAGE_TAG}")

for image in ${PRELOAD_IMAGES}; do
local image_key="${component_by_image[$image]}"
[[ -n "${image_key}" ]] || continue
extra_flags+=(--image-override "${image_key}=${SUBM_IMAGE_REPO}/${image}:${SUBM_IMAGE_TAG}")
local image_keys="${component_by_image[$image]}"
[[ -n "${image_keys}" ]] || continue
for key in ${image_keys}; do
extra_flags+=(--image-override "${key}=${SUBM_IMAGE_REPO}/${image}:${SUBM_IMAGE_TAG}")
done
done
fi

Expand Down

0 comments on commit 1d5468a

Please sign in to comment.