samba-in-kubernetes / samba-operator

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

planner: fixes and tests for configuration update #249

Closed phlogistonjohn closed 2 years ago

phlogistonjohn commented 2 years ago

There are a number of code-paths the planner takes to update the smbcc configuration. This initial set of unit tests gets us to around 77% coverage of configuration.go, checking some of the most common of these paths.

phlogistonjohn commented 2 years ago

Note that updating the configuration with a 2nd share is not supported by the operator today. The fix here will be needed when we start supporting that as a valid action in the operator. That said, it's nice to have the library function work correctly anyways :-)

phlogistonjohn commented 2 years ago

Giving this until Thursday (09-28) for any additional reviews.