Skip to content

Commit fea8e99

Browse files
committed
refact: dont use update_registry_proxy on in the image-factory
1 parent 0c77240 commit fea8e99

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎image-factory/create_image.sh‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ cleanup() {
2020
trap cleanup EXIT
2121

2222
# functions from system/cuos/utils.sh
23+
# dont use update_registry_proxy here, because we are not yet in the
24+
# target infrastructure. Thus the proxy might not be reachable.
2325
image_url() {
2426
local image
2527
image="$(jq -r \
2628
--arg prefix "${1:-}" '
2729
(
2830
if (.[$prefix + "_image"] | (type == "string" and . != "" and
2931
((startswith("/")) or (contains(".") | not)))) then
30-
(.update_registry_proxy // .update_registry) + "/" + .[$prefix + "_image"]
32+
(.update_registry) + "/" + .[$prefix + "_image"]
3133
else
3234
.[$prefix + "_image"]
3335
end

0 commit comments

Comments
 (0)