This is an attempt, perhaps quixotic, to simplify how we work with volumes in mounts in our pods. Starting by moving volume constructor calls into a new file.
Previously, we had to juggle volumes, volume mounts, the full list of volumes and the individual list of mounts. Now we return a simple struct tracking both volume and mount but unfortunately still need to track separate lists for to complete set of volumes (for the pod) and the individualized lists of mounts for each container.
This is an attempt, perhaps quixotic, to simplify how we work with volumes in mounts in our pods. Starting by moving volume constructor calls into a new file.
Previously, we had to juggle volumes, volume mounts, the full list of volumes and the individual list of mounts. Now we return a simple struct tracking both volume and mount but unfortunately still need to track separate lists for to complete set of volumes (for the pod) and the individualized lists of mounts for each container.