Skip to content

Commit

Permalink
Keep backwards compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Jan 12, 2024
1 parent 99e3bce commit e88ad1a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,20 @@ type GCConfig struct {
Container bool `codec:"container"`
}

// LoggingConfig is the tasks logging configuration
// LoggingConfig is the driver logging configuration
// keep in sync with `TaskLoggingConfig`
type LoggingConfig struct {
Driver string `codec:"driver"`
Options map[string]string `codec:"options"`
}

// LoggingConfig is the tasks logging configuration
// keep in sync with `LoggingConfig`
type TaskLoggingConfig struct {
Driver string `codec:"driver"`
Options hclutils.MapStrStr `codec:"options"`
}

// VolumeConfig is the drivers volume specific configuration
type VolumeConfig struct {
Enabled bool `codec:"enabled"`
Expand Down Expand Up @@ -188,7 +196,7 @@ type TaskConfig struct {
Image string `codec:"image"`
ImagePullTimeout string `codec:"image_pull_timeout"`
InitPath string `codec:"init_path"`
Logging LoggingConfig `codec:"logging"`
Logging TaskLoggingConfig `codec:"logging"`
Labels hclutils.MapStrStr `codec:"labels"`
MemoryReservation string `codec:"memory_reservation"`
MemorySwap string `codec:"memory_swap"`
Expand Down

0 comments on commit e88ad1a

Please sign in to comment.