This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 519
chore: install specific containerd version, make version configurable #516
Merged
jackfrancis
merged 15 commits into
Azure:master
from
jackfrancis:containerd-install-specific-version
Feb 16, 2019
Merged
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2040115
feat: enforce desired containerd version
jackfrancis 1de4dcc
chore: assume containerd download isn’t needed for moby
jackfrancis 1d066be
chore: don’t install containerd via VHD, download 1.1.6
jackfrancis cc6f289
chore: make containerd version configurable
jackfrancis bd22f05
chore: respect iptables lock
jackfrancis 2088291
chore: generate
jackfrancis 5d4e738
chore: allow “” mobyVersion for containerd scenarios
jackfrancis d1207fe
chore: enable “” containerdVersion
jackfrancis 901f465
chore: only use params if needed, don’t need “”
jackfrancis ddd6bd0
chore: enable containerd version 1.2.4 as an option
jackfrancis ba3fcc4
chore: extra params map adder
jackfrancis 9fe42e4
chore: only call ensureContainerd if necessary
jackfrancis 3a5bd22
chore: add validation for containerdVersion in non-relevant configs
jackfrancis bfba673
chore: improved validation
jackfrancis 5d89dc0
chore: ugh found a bug
jackfrancis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ if [[ ${FEATURE_FLAGS} == *"docker-engine"* ]]; then | |
DOCKER_ENGINE_REPO="https://apt.dockerproject.org/repo" | ||
installDockerEngine | ||
installGPUDrivers | ||
installContainerd | ||
else | ||
MOBY_VERSION="3.0.4" | ||
installMoby | ||
|
@@ -28,6 +29,7 @@ installClearContainersRuntime | |
|
||
VNET_CNI_VERSIONS="1.0.16 1.0.17" | ||
CNI_PLUGIN_VERSIONS="0.7.1" | ||
CONTAINERD_VERSIONS="1.1.5" | ||
|
||
for VNET_CNI_VERSION in $VNET_CNI_VERSIONS; do | ||
VNET_CNI_PLUGINS_URL="https://acs-mirror.azureedge.net/cni/azure-vnet-cni-linux-amd64-v${VNET_CNI_VERSION}.tgz" | ||
|
@@ -39,7 +41,10 @@ for CNI_PLUGIN_VERSION in $CNI_PLUGIN_VERSIONS; do | |
downloadCNI | ||
done | ||
|
||
installContainerd | ||
for CONTAINERD_VERSION in $CONTAINERD_VERSIONS; do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of actually doing the install, we're just downloading the artifacts in the VHD. |
||
CONTAINERD_DOWNLOAD_URL="${CONTAINERD_DOWNLOAD_URL_BASE}cri-containerd-${CONTAINERD_VERSION}.linux-amd64.tar.gz" | ||
downloadContainerd | ||
done | ||
|
||
installImg | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,9 @@ fi | |
|
||
installContainerRuntime | ||
installNetworkPlugin | ||
installContainerd | ||
if [[ "$CONTAINER_RUNTIME" == "clear-containers" ]] || [[ "$CONTAINER_RUNTIME" == "kata-containers" ]] || [[ "$CONTAINER_RUNTIME" == "containerd" ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We only actually install the containerd artifacts for required scenarios at provisioning time. |
||
installContainerd | ||
fi | ||
if [[ "${GPU_NODE}" = true ]]; then | ||
if $FULL_INSTALL_REQUIRED; then | ||
installGPUDrivers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just to be conservative/iterative, let's keep the
installContainerd
invocation in the VHD for non-moby scenario.(See below that it used to be here.)
I don't think we strictly need to be doing this installation, but the safest way is to make that change distinctly.
The reason we're removing it from moby is that the moby installation implementation currently installs containerd stuffs itself.