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

feat: enable re-use of VHD #2130

Merged
merged 1 commit into from
Oct 9, 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: 5 additions & 5 deletions parts/k8s/cloud-init/artifacts/cse_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ if [[ "${GPU_NODE}" != "true" ]]; then
fi

VHD_LOGS_FILEPATH=/opt/azure/vhd-install.complete
if [[ "${IS_VHD}" = true ]]; then
if [ ! -f $VHD_LOGS_FILEPATH ]; then
echo "Using VHD distro but file $VHD_LOGS_FILEPATH not found"
exit $ERR_VHD_FILE_NOT_FOUND
fi
if [ -f $VHD_LOGS_FILEPATH ]; then
echo "detected golden image pre-install"
cleanUpContainerImages
FULL_INSTALL_REQUIRED=false
else
if [[ "${IS_VHD}" = true ]]; then
echo "Using VHD distro but file $VHD_LOGS_FILEPATH not found"
exit $ERR_VHD_FILE_NOT_FOUND
fi
FULL_INSTALL_REQUIRED=true
fi

Expand Down
10 changes: 5 additions & 5 deletions pkg/engine/templates_generated.go

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