-
Notifications
You must be signed in to change notification settings - Fork 205
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
feat: Move WASM to components.json #4969
base: master
Are you sure you want to change the base?
Conversation
done | ||
fi | ||
for shim in "${shims_to_download[@]}"; do | ||
chmod 755 "$containerd_wasm_filepath/containerd-${shim}-${binary_version}-v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chmod 755 "$containerd_wasm_filepath/containerd-${shim}-${binary_version}-v1" | |
chmod 755 "$containerd_wasm_filepath/containerd-shim-${shim}-${binary_version}-v1" |
local shims_to_download=${3} | ||
local binary_version="$(echo "${shim_version}" | tr . -)" | ||
|
||
chmod 755 "$containerd_wasm_filepath/containerd-shim-spin-${binary_version}-v2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chmod 755 "$containerd_wasm_filepath/containerd-shim-spin-${binary_version}-v2" | |
chmod 755 "$containerd_wasm_filepath/containerd-shim-spin-v2" |
for shim in "${shims_to_download[@]}"; do | ||
retrycmd_if_failure 30 5 60 curl -fSLv -o "$containerd_wasm_filepath/containerd-shim-${shim}-${binary_version}-v1" "$containerd_wasm_url/containerd-shim-${shim}-v1" 2>&1 | tee $CURL_OUTPUT >/dev/null | grep -E "^(curl:.*)|([eE]rr.*)$" && (cat $CURL_OUTPUT && exit $ERR_KRUSTLET_DOWNLOAD_TIMEOUT) & | ||
WASMSHIMPIDS+=($!) | ||
done | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: shouldn't this for loop be put in the else
block since it's downloading from acs-mirror
path, instead of MCR registry?
retrycmd_if_failure 30 5 60 curl -fSLv -o "$containerd_wasm_filepath/containerd-shim-spin-v2" "$containerd_wasm_url/containerd-shim-spin-v2" 2>&1 | tee $CURL_OUTPUT >/dev/null | grep -E "^(curl:.*)|([eE]rr.*)$" && (cat $CURL_OUTPUT && exit $ERR_KRUSTLET_DOWNLOAD_TIMEOUT) & | ||
SPINKUBEPIDS+=($!) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as above, shound't this be placed inside a else
block?
What type of PR is this?
What this PR does / why we need it: removing hard coded wasm version and acs-mirror url to components.json
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: