Skip to content

Commit 8d52793

Browse files
committed
Update volumesource to be json inline
1 parent 4878b3f commit 8d52793

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/storage/storage.go

+2-4
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 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)