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

Commit

Permalink
fix: cleanup apt artifacts before running apt (#2006)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed Sep 21, 2019
1 parent e69ccc7 commit fb879e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
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.

0 comments on commit fb879e4

Please sign in to comment.