Skip to content

Commit

Permalink
test: support kind tests with images without tags
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpiritXIII committed Jul 24, 2024
1 parent fed6f58 commit b358996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/kind-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ docker_tag_push() {
# Ultimately this should be replaced with go templating.
update_manifests() {
for bin in "$@"; do
find manifests -type f -name "*.yaml" -exec sed -i "s#image: .*/${bin}:.*#image: localhost:${REGISTRY_PORT}/${bin}:${TAG_NAME}#g" {} \;
find manifests -type f -name "*.yaml" -exec sed -i -E "s#image: .*/${bin}(@.*)?:.*#image: localhost:${REGISTRY_PORT}/${bin}:${TAG_NAME}#g" {} \;
if [ "$bin" = "go-synthetic" ]; then
find examples/instrumentation -type f -name "*.yaml" -exec sed -i "s#image: .*/example-app:.*#image: localhost:${REGISTRY_PORT}/${bin}:${TAG_NAME}#g" {} \;
find examples/instrumentation -type f -name "*.yaml" -exec sed -i -E "s#image: .*/example-app(@.*)?:.*#image: localhost:${REGISTRY_PORT}/${bin}:${TAG_NAME}#g" {} \;
fi
done
}
Expand Down

0 comments on commit b358996

Please sign in to comment.