fixed empty PV/C lists by removing omitempty

This commit is contained in:
markturansky
2015-09-04 09:49:30 -04:00
parent cbce3a1ab8
commit b6feefbd9f
3 changed files with 10 additions and 4 deletions

View File

@@ -326,7 +326,7 @@ type PersistentVolumeStatus struct {
type PersistentVolumeList struct {
TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []PersistentVolume `json:"items,omitempty"`
Items []PersistentVolume `json:"items"`
}
// PersistentVolumeClaim is a user's request for and claim to a persistent volume
@@ -344,7 +344,7 @@ type PersistentVolumeClaim struct {
type PersistentVolumeClaimList struct {
TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []PersistentVolumeClaim `json:"items,omitempty"`
Items []PersistentVolumeClaim `json:"items"`
}
// PersistentVolumeClaimSpec describes the common attributes of storage devices