Skip to content

Commit

Permalink
add hard-coded containerd version and unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Wong committed Oct 29, 2024
1 parent 083476c commit fc6896e
Show file tree
Hide file tree
Showing 174 changed files with 184 additions and 260 deletions.
3 changes: 1 addition & 2 deletions parts/linux/cloud-init/artifacts/cse_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ installContainerdWithComponentsJson() {
# containerd versions definitions are only available in the manifest file before the centralized packages changes, before around early July 2024.
# After the centralized packages changes, the containerd versions are only available in the components.json.
installContainerdWithManifestJson() {
local containerd_version
local containerd_version="1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+Containerd/CustomData

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+Containerd/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+Docker/CustomData

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+Docker/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+GPUDedicatedVHD/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+K8S115/CustomData

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+K8S115/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+K8S117/CustomData

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+K8S117/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+K8S118/CustomData

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+K8S118/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+KubeletConfigFile/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+OSKubeletDisk/CustomData

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+OSKubeletDisk/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+TempDiskExplicit/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/testdata/AKSUbuntu1604+TempDiskToggle/CustomData

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1604+TempDiskToggle/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1804+ArtifactStreaming/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/agent/testdata/AKSUbuntu1804+Containerd+Certsd/line40.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ installContainerdWithComponentsJson() {
}

installContainerdWithManifestJson() {
local containerd_version
local containerd_version = "1.7.1-1"
if [ -f "$MANIFEST_FILEPATH" ]; then
local containerd_version
containerd_version="$(jq -r .containerd.edge "$MANIFEST_FILEPATH")"
if [ "${UBUNTU_RELEASE}" == "18.04" ]; then
containerd_version="$(jq -r '.containerd.pinned."1804"' "$MANIFEST_FILEPATH")"
Expand Down
Loading

0 comments on commit fc6896e

Please sign in to comment.