nats-io / nack

NATS Controllers for Kubernetes (NACK)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YAML config doesn't support all time formats on maxAge

DavidHoessle opened this issue · comments

The yaml config doesn't seem to support any time specification above hour (h) such as d for day, M for month and y for year.

image

func getMaxAge(v string) (time.Duration, error) {
if v == "" {
return time.Duration(0), nil
}
return time.ParseDuration(v)
}