Skip to content

Commit

Permalink
fix TTL configuration from wrong environment variables (#4340)
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Sitong <yusitong1999@foxmail.com>
Co-authored-by: Yu Sitong <yusitong1999@foxmail.com>
  • Loading branch information
1 parent a5b8ebf commit 771148b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ For more information and how-to, see [RFC: Keep A Changelog](https://github.com/
### Fixed

- Enable prometheus directive within CoreDNS [#4321](https://github.com/chaos-mesh/chaos-mesh/pull/4321)
- Fix TTL configuration from environment variables [#4338](https://github.com/chaos-mesh/chaos-mesh/pull/4338)

### Security

Expand Down
4 changes: 2 additions & 2 deletions pkg/config/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ type TTLConfigWithStringTime struct {

EventTTL string `envconfig:"TTL_EVENT" default:"168h"` // one week
ExperimentTTL string `envconfig:"TTL_EXPERIMENT" default:"336h"` // two weeks
ScheduleTTL string `envconfig:"TTL_EXPERIMENT" default:"336h"`
WorkflowTTL string `envconfig:"TTL_EXPERIMENT" default:"336h"`
ScheduleTTL string `envconfig:"TTL_SCHEDULE" default:"336h"`
WorkflowTTL string `envconfig:"TTL_WORKFLOW" default:"336h"`
}

func (config *TTLConfigWithStringTime) Parse() (*TTLConfig, error) {
Expand Down

0 comments on commit 771148b

Please sign in to comment.