Skip to content

Commit

Permalink
Add Projected to custom VolumeSource struct
Browse files Browse the repository at this point in the history
  • Loading branch information
dprince committed Oct 26, 2024
1 parent 757f340 commit 333dbab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ type VolumeSource struct {
// csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
// +optional
CSI *corev1.CSIVolumeSource `json:"csi,omitempty" protobuf:"bytes,28,opt,name=csi"`

// projected items for all in one resources secrets, configmaps, and downward API
Projected *corev1.ProjectedVolumeSource `json:"projected,omitempty" protobuf:"bytes,26,opt,name=projected"`
}

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

// ToCoreVolume- convert Volume to corev1.Volume
// ToCoreVolume - convert Volume to corev1.Volume
func (s *Volume) ToCoreVolume() (*corev1.Volume, error) {
coreVolume := &corev1.Volume{}

Expand Down

0 comments on commit 333dbab

Please sign in to comment.