Skip to content

Commit 085bdf6

Browse files
committed
add missing mapstructure mapping for BlkioConfig
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 9ccec54 commit 085bdf6

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)