Skip to content

Commit 333dbab

Browse files
committed
Add Projected to custom VolumeSource struct
1 parent 757f340 commit 333dbab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/storage/storage.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ type VolumeSource struct {
9090
// csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
9191
// +optional
9292
CSI *corev1.CSIVolumeSource `json:"csi,omitempty" protobuf:"bytes,28,opt,name=csi"`
93+
94+
// projected items for all in one resources secrets, configmaps, and downward API
95+
Projected *corev1.ProjectedVolumeSource `json:"projected,omitempty" protobuf:"bytes,26,opt,name=projected"`
9396
}
9497

9598
// Volume our slimmed down version of Volume
@@ -162,7 +165,7 @@ func (s *VolumeSource) ToCoreVolumeSource() (*corev1.VolumeSource, error) {
162165
return coreVolumeSource, nil
163166
}
164167

165-
// ToCoreVolume- convert Volume to corev1.Volume
168+
// ToCoreVolume - convert Volume to corev1.Volume
166169
func (s *Volume) ToCoreVolume() (*corev1.Volume, error) {
167170
coreVolume := &corev1.Volume{}
168171

0 commit comments

Comments
 (0)