Add ability to disable package uninstalls
Allow users to disable auto-uninstall functionality for packages. Change-Id: Ib59ff175fc474a592118374c23974c6a9439cd72
This commit is contained in:
parent
db4f382b59
commit
32da2fbd4b
|
@ -159,6 +159,7 @@ APT_PURGE="apt-get purge -y --allow-remove-essential"
|
||||||
APT_PURGE="apt-get purge -y --autoremove"
|
APT_PURGE="apt-get purge -y --autoremove"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.manifests.daemonset_apt_remove_old_pkgs }}
|
||||||
{{- if hasKey .Values.conf.apt "packages" }}
|
{{- if hasKey .Values.conf.apt "packages" }}
|
||||||
{{- if .Values.conf.apt.strict }}
|
{{- if .Values.conf.apt.strict }}
|
||||||
# in strict mode we execute this stage even on first run, so
|
# 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
|
sort ${persist_path}/packages -o ${persist_path}/packages
|
||||||
fi
|
fi
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
######################################################
|
######################################################
|
||||||
#Stage 4
|
#Stage 4
|
||||||
|
|
|
@ -232,6 +232,7 @@ manifests:
|
||||||
daemonset_sysctl: true
|
daemonset_sysctl: true
|
||||||
daemonset_limits: true
|
daemonset_limits: true
|
||||||
daemonset_apt: true
|
daemonset_apt: true
|
||||||
|
daemonset_apt_remove_old_pkgs: true
|
||||||
daemonset_perm: true
|
daemonset_perm: true
|
||||||
daemonset_exec: true
|
daemonset_exec: true
|
||||||
daemonset_apparmor: true
|
daemonset_apparmor: true
|
||||||
|
|
Loading…
Reference in New Issue