Add ability to disable package uninstalls

Allow users to disable auto-uninstall functionality for packages.

Change-Id: Ib59ff175fc474a592118374c23974c6a9439cd72
This commit is contained in:
Anderson, Craig (ca846m) 2020-03-23 10:22:22 -07:00
parent db4f382b59
commit 32da2fbd4b
2 changed files with 3 additions and 0 deletions

View File

@ -159,6 +159,7 @@ APT_PURGE="apt-get purge -y --allow-remove-essential"
APT_PURGE="apt-get purge -y --autoremove"
{{- end }}
{{- if .Values.manifests.daemonset_apt_remove_old_pkgs }}
{{- if hasKey .Values.conf.apt "packages" }}
{{- if .Values.conf.apt.strict }}
# in strict mode we execute this stage even on first run, so
@ -229,6 +230,7 @@ if [ ! -z "$INSTALLED_THIS_TIME" ]; then
sort ${persist_path}/packages -o ${persist_path}/packages
fi
{{- end }}
{{- end }}
######################################################
#Stage 4

View File

@ -232,6 +232,7 @@ manifests:
daemonset_sysctl: true
daemonset_limits: true
daemonset_apt: true
daemonset_apt_remove_old_pkgs: true
daemonset_perm: true
daemonset_exec: true
daemonset_apparmor: true