Browse Source

Add ability to disable package uninstalls

Allow users to disable auto-uninstall functionality for packages.

Change-Id: Ib59ff175fc474a592118374c23974c6a9439cd72
changes/97/714497/1
Anderson, Craig (ca846m) 1 year ago
parent
commit
32da2fbd4b
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      divingbell/templates/bin/_apt.sh.tpl
  2. +1
    -0
      divingbell/values.yaml

+ 2
- 0
divingbell/templates/bin/_apt.sh.tpl 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


+ 1
- 0
divingbell/values.yaml 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


Loading…
Cancel
Save