diff --git a/pkg/api/types.go b/pkg/api/types.go index 272a370674..700d3f02f1 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -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. diff --git a/pkg/api/v1beta3/types.go b/pkg/api/v1beta3/types.go index bd93a78356..4f07e2fb6d 100644 --- a/pkg/api/v1beta3/types.go +++ b/pkg/api/v1beta3/types.go @@ -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.