Added variable to enable or disable archivePruner (#2458)
* Added variable to enable or disable archivePruner * Made fixes according to code review comments * Minor changes
This commit is contained in:
@@ -36,8 +36,12 @@ spec:
|
||||
args: ["--storageServicePort", "8000", "--storageType", "local"]
|
||||
{{- end }}
|
||||
env:
|
||||
- name: PRUNE_ENABLED
|
||||
value: "{{.Values.storagesvc.archivePruner.enabled}}"
|
||||
{{- if .Values.storagesvc.archivePruner.enabled }}
|
||||
- name: PRUNE_INTERVAL
|
||||
value: "{{.Values.pruneInterval}}"
|
||||
value: "{{.Values.storagesvc.archivePruner.interval}}"
|
||||
{{- end }}
|
||||
- name: DEBUG_ENV
|
||||
value: {{ .Values.debugEnv | quote }}
|
||||
- name: PPROF_ENABLED
|
||||
|
||||
@@ -365,6 +365,12 @@ storagesvc:
|
||||
##
|
||||
resources: {}
|
||||
|
||||
## Archive pruner removes archives from storage which are not referenced by any package.
|
||||
archivePruner:
|
||||
enabled: true
|
||||
## Run prune routine at interval (in minutes)
|
||||
interval: 60
|
||||
|
||||
## Security Context
|
||||
## It holds pod-level and container level security configuration.
|
||||
## This is an experimental section, please verify before enabling in production.
|
||||
@@ -567,7 +573,6 @@ busyboxImage: busybox
|
||||
## This interval configures the frequency at which it runs inside the storagesvc pod.
|
||||
## The value is in minutes.
|
||||
##
|
||||
pruneInterval: 60
|
||||
|
||||
preUpgradeChecks:
|
||||
## Run pre-install/pre-upgrade checks if true
|
||||
|
||||
Reference in New Issue
Block a user