Feat: Janitor add debug and loop options
This commit is contained in:
parent
4bf084090e
commit
ccec08fd26
@ -6,8 +6,8 @@ cleanup:
|
||||
KEEP_IMAGES: "${KEEP}"
|
||||
KEEP_CONTAINERS: "${KEEPC}"
|
||||
KEEP_CONTAINERS_NAMED: "${KEEPCN}"
|
||||
LOOP: "true"
|
||||
DEBUG: "0"
|
||||
LOOP: "${LOOP}"
|
||||
DEBUG: "${DEBUG}"
|
||||
labels:
|
||||
io.rancher.scheduler.global: "true"
|
||||
io.rancher.scheduler.affinity:host_label_ne: "${EXCLUDE_LABEL}"
|
||||
|
@ -34,3 +34,21 @@
|
||||
default: "**None**"
|
||||
required: false
|
||||
type: "string"
|
||||
- variable: "DEBUG"
|
||||
label: "Enable more debugging output on pattern matches"
|
||||
description: "Read https://github.com/meltwater/docker-cleanup#environment-variables"
|
||||
required: true
|
||||
default: 0
|
||||
type: "enum"
|
||||
options:
|
||||
- 0
|
||||
- 1
|
||||
- variable: "LOOP"
|
||||
label: "Ability to do non-looped cleanups, run it once and exit. Defaults to yes to run it forever in loops."
|
||||
description: "Read https://github.com/meltwater/docker-cleanup#environment-variables"
|
||||
required: true
|
||||
default: true
|
||||
type: "enum"
|
||||
options:
|
||||
- false
|
||||
- true
|
||||
|
Loading…
x
Reference in New Issue
Block a user