Skip to content

Commit

Permalink
fix: fix index for shims to download (#5003)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisonB319 authored Sep 27, 2024
1 parent c47dfe2 commit cadaa92
Show file tree
Hide file tree
Showing 174 changed files with 262 additions and 262 deletions.
4 changes: 2 additions & 2 deletions parts/linux/cloud-init/artifacts/cse_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2} # global URL that is set from the components.json
local package_versions=("${@:2}") # Capture all arguments starting from the second indx
local package_versions=("${@:3}") # Capture all arguments starting from the third indx

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -291,7 +291,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}") # Capture all arguments starting from the second indx
local package_versions=("${@:3}") # Capture all arguments starting from the third indx

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+Containerd/CustomData

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/agent/testdata/AKSUbuntu1604+Containerd/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+Docker/CustomData

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/agent/testdata/AKSUbuntu1604+Docker/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/agent/testdata/AKSUbuntu1604+GPUDedicatedVHD/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+K8S115/CustomData

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/agent/testdata/AKSUbuntu1604+K8S115/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+K8S117/CustomData

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/agent/testdata/AKSUbuntu1604+K8S117/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+K8S118/CustomData

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/agent/testdata/AKSUbuntu1604+K8S118/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/agent/testdata/AKSUbuntu1604+KubeletConfigFile/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+OSKubeletDisk/CustomData

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/agent/testdata/AKSUbuntu1604+OSKubeletDisk/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wasmFilesExist() {
installContainerdWasmShims(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
local shims_to_download=("spin" "slight")
Expand Down Expand Up @@ -269,7 +269,7 @@ updateContainerdWasmShimsPermissions() {
installSpinKube(){
local download_location=${1}
PACKAGE_DOWNLOAD_URL=${2}
local package_versions=("${@:2}")
local package_versions=("${@:3}")

for version in "${package_versions[@]}"; do
containerd_spinkube_url=$(evalPackageDownloadURL ${PACKAGE_DOWNLOAD_URL})
Expand Down
Loading

0 comments on commit cadaa92

Please sign in to comment.