- the reaper checks now also the initContainerStatus
- add
DRY_RUN
mode
- adjusted cron
SCHEDULE
for optional seconds, non optional day of week
- added multiple logging formats
- added configurable
LOG_LEVEL
- added
UNREADY
rule to kill pods based on duration of time not passing readiness checks
- added
POD_STATUSES
rule (can now filter/killEvicted
pods)
- added configurable
GRACE_PERIOD
to control soft vs hard pod kills
- Added logging via logrus
- removed
POLL_INTERVAL
environment variable in favor of cron schedule - added
SCHEDULE
environment variable to control when pods are inspected for reaping- makes use of https://godoc.org/github.com/robfig/cron
- refactored packages for clarity
- testing refactor for clarity
- added ability to only reap pods with specified labels
- redesign of the reaper to be built on modular rules
- rules must implement two methods
load()
andshouldReap(pod)
- rules determine whether or not they get loaded at runtime via environment variables
- pods will only be reaped if all rules are met
- rules must implement two methods
- major refactoring for testability