Skip to content

Commit

Permalink
Drop more VolSource
Browse files Browse the repository at this point in the history
Probably not likely we'll be using these:

PhotonPersistentDisk
Projected
Ephemeral
  • Loading branch information
dprince committed Oct 25, 2024
1 parent 83d1d2f commit 203160d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
13 changes: 0 additions & 13 deletions modules/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ type VolumeSource struct {
// configMap represents a configMap that should populate this volume
// +optional
ConfigMap *corev1.ConfigMapVolumeSource `json:"configMap,omitempty" protobuf:"bytes,19,opt,name=configMap"`
// photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
PhotonPersistentDisk *corev1.PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty" protobuf:"bytes,23,opt,name=photonPersistentDisk"`
// projected items for all in one resources secrets, configmaps, and downward API
Projected *corev1.ProjectedVolumeSource `json:"projected,omitempty" protobuf:"bytes,26,opt,name=projected"`
// scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
// +optional
ScaleIO *corev1.ScaleIOVolumeSource `json:"scaleIO,omitempty" protobuf:"bytes,25,opt,name=scaleIO"`
Expand All @@ -91,12 +87,6 @@ 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"`
// ephemeral represents a volume that is handled by a cluster storage driver.
// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
// and deleted when the pod is removed.
//
// +optional
Ephemeral *corev1.EphemeralVolumeSource `json:"ephemeral,omitempty" protobuf:"bytes,29,opt,name=ephemeral"`
}

// Volume our slimmed down version of Volume
Expand Down Expand Up @@ -165,11 +155,8 @@ func ConvertVolumeSource(v *VolumeSource) corev1.VolumeSource {
DownwardAPI: v.DownwardAPI,
FC: v.FC,
ConfigMap: v.ConfigMap,
PhotonPersistentDisk: v.PhotonPersistentDisk,
Projected: v.Projected,
ScaleIO: v.ScaleIO,
StorageOS: v.StorageOS,
CSI: v.CSI,
Ephemeral: v.Ephemeral,
}
}
15 changes: 0 additions & 15 deletions modules/storage/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 203160d

Please sign in to comment.