Skip to content

Commit 71a0e9d

Browse files
authored
Merge pull request #577 from dprince/volume_inline_fix
Update volumesource to be json inline
2 parents 4878b3f + d5acfee commit 71a0e9d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/storage/storage.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,10 @@ type VolumeSource struct {
9797

9898
// Volume our slimmed down version of Volume
9999
type Volume struct {
100-
// +kubebuilder:validation:Required
101100
// Name of the volume
102-
Name string `json:"name"`
103-
// +kubebuilder:validation:Required
101+
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
104102
// VolumeSource defines the source of a volume to be mounted
105-
VolumeSource VolumeSource `json:"volumeSource"`
103+
VolumeSource `json:",inline" protobuf:"bytes,2,opt,name=volumeSource"`
106104
}
107105

108106
// VolMounts is the data structure used to expose Volumes and Mounts that can

0 commit comments

Comments
 (0)