Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

fix: cleanup apt artifacts before running apt #2006

Merged
merged 1 commit into from
Sep 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions parts/k8s/cloud-init/artifacts/cse_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ else
REBOOTREQUIRED=false
fi

if [[ "$CONTAINER_RUNTIME" != "kata-containers" ]] && [[ "$CONTAINER_RUNTIME" != "containerd" ]]; then
cleanUpContainerd
fi
if [[ "${GPU_NODE}" != "true" ]]; then
cleanUpGPUDrivers
fi

VHD_LOGS_FILEPATH=/opt/azure/vhd-install.complete
if [[ "${IS_VHD}" = true ]]; then
Expand Down Expand Up @@ -81,16 +87,12 @@ fi
installNetworkPlugin
if [[ "$CONTAINER_RUNTIME" == "kata-containers" ]] || [[ "$CONTAINER_RUNTIME" == "containerd" ]]; then
installContainerd
else
cleanUpContainerd
fi
if [[ "${GPU_NODE}" = true ]]; then
if $FULL_INSTALL_REQUIRED; then
installGPUDrivers
fi
ensureGPUDrivers
else
cleanUpGPUDrivers
fi
installKubeletAndKubectl
if [[ $OS != $COREOS_OS_NAME ]]; then
Expand Down
10 changes: 6 additions & 4 deletions pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.