ricardomaraschini / oomhero

Kubernetes sidecar for memory usage tracking
Apache License 2.0
108 stars 10 forks source link

Migrate COOLDOWN to time.ParseDuration format #18

Closed szarykott closed 1 year ago

szarykott commented 1 year ago

This pull request migrates the COOLDOWN environment variable to a format understood by time.ParseDuartion. What is more, migration is done in backward-compatible mode (COOLDOWN equal to a number of seconds w/o unit would still be understood).

Additionally, tests are added.