Skip to content

Commit

Permalink
Merge pull request kubernetes#5075 from thockin/fix_inline
Browse files Browse the repository at this point in the history
Fix VolumeSource inline in JSON
  • Loading branch information
lavalamp committed Mar 5, 2015
2 parents 4f12f4f + 4cb4682 commit feb98ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1beta3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit feb98ca

Please sign in to comment.