Fix VolumeSource inline in JSON

This commit is contained in:
Tim Hockin 2015-03-04 15:53:32 -08:00
parent a68779dff9
commit 4cb46825f2
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.