Merge pull request #5075 from thockin/fix_inline

Fix VolumeSource inline in JSON
pull/6/head
Daniel Smith 2015-03-04 17:24:06 -08:00
commit feb98caac2
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ type Volume struct {
// The VolumeSource represents the location and type of a volume to mount.
// This is optional for now. If not specified, the Volume is implied to be an EmptyDir.
// This implied behavior is deprecated and will be removed in a future version.
VolumeSource `json:"inline,omitempty"`
VolumeSource `json:",inline,omitempty"`
}
// VolumeSource represents the source location of a volume to mount.

View File

@ -177,7 +177,7 @@ type Volume struct {
// Source represents the location and type of a volume to mount.
// This is optional for now. If not specified, the Volume is implied to be an EmptyDir.
// This implied behavior is deprecated and will be removed in a future version.
VolumeSource `json:"inline,omitempty"`
VolumeSource `json:",inline,omitempty"`
}
// VolumeSource represents the source location of a valume to mount.