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

chore: don't run unattended upgrade if using "no outbound" test feature #4297

Merged
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
4 changes: 3 additions & 1 deletion parts/k8s/cloud-init/artifacts/cse_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,10 @@ if [[ $OS == $UBUNTU_OS_NAME ]]; then
fi
{{end}}

{{- if RunUnattendedUpgrades}}
{{- if not HasBlockOutboundInternet}}
{{- if RunUnattendedUpgrades}}
apt_get_update && unattended_upgrade
{{- end}}
{{- end}}

if [ -f /var/run/reboot-required ]; then
Expand Down
4 changes: 3 additions & 1 deletion pkg/engine/templates_generated.go

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