samba-in-kubernetes / samba-operator

An operator for a Samba as a service on PVCs in kubernetes
Apache License 2.0
110 stars 24 forks source link

resources: add a volKeeper type for wrangling volumes #179

Closed phlogistonjohn closed 2 years ago

phlogistonjohn commented 2 years ago

The current implementation of pod construction relies on managing many slices of volMount objects. Not only is this a bit verbose but it also relies on a trick that the static checkers don't like. In order to make things a bit less "loose" and more regular the very simple volKeeper type is added as a wrapper around a slice of volMounts.

The major pod assembly functions are then converted to use volKeepers.

This work is a precursor to additional patches that will add new containers to the pods that will watch for configuration changes.

phlogistonjohn commented 2 years ago

/retest centos-ci/sink-clustered/mini-k8s-1.23

phlogistonjohn commented 2 years ago

/test centos-ci/sink-clustered/mini-k8s-1.24

phlogistonjohn commented 2 years ago

Some suggestions for the future:

Thanks for looking!