Skip to content

Commit 7db19b7

Browse files
authored
Merge pull request #227 from ndeloof/blkio_mapstructure
add missing mapstructure mapping for BlkioConfig
2 parents 9ccec54 + 085bdf6 commit 7db19b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

types/types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ type BuildConfig struct {
307307
// BlkioConfig define blkio config
308308
type BlkioConfig struct {
309309
Weight uint16 `yaml:",omitempty" json:"weight,omitempty"`
310-
WeightDevice []WeightDevice `yaml:",omitempty" json:"weight_device,omitempty"`
311-
DeviceReadBps []ThrottleDevice `yaml:",omitempty" json:"device_read_bps,omitempty"`
312-
DeviceReadIOps []ThrottleDevice `yaml:",omitempty" json:"device_read_iops,omitempty"`
313-
DeviceWriteBps []ThrottleDevice `yaml:",omitempty" json:"device_write_bps,omitempty"`
314-
DeviceWriteIOps []ThrottleDevice `yaml:",omitempty" json:"device_write_iops,omitempty"`
310+
WeightDevice []WeightDevice `mapstructure:"weight_device" yaml:",omitempty" json:"weight_device,omitempty"`
311+
DeviceReadBps []ThrottleDevice `mapstructure:"device_read_bps" yaml:",omitempty" json:"device_read_bps,omitempty"`
312+
DeviceReadIOps []ThrottleDevice `mapstructure:"device_read_iops" yaml:",omitempty" json:"device_read_iops,omitempty"`
313+
DeviceWriteBps []ThrottleDevice `mapstructure:"device_write_bps" yaml:",omitempty" json:"device_write_bps,omitempty"`
314+
DeviceWriteIOps []ThrottleDevice `mapstructure:"device_write_iops" yaml:",omitempty" json:"device_write_iops,omitempty"`
315315

316316
Extensions map[string]interface{} `yaml:",inline" json:"-"`
317317
}

0 commit comments

Comments
 (0)