Consolidate Supervisor filesystem pathing code #5931
Labels
Focus:Supervisor
Related to the Habitat Supervisor (core/hab-sup) component
Stale
Type: Chore
Issues for general code and infrastructure maintenance
Type:Technical Debt
No functional changes; just about cleaning up and reorganizing
We have code for determining the appropriate filesystem paths for several parts of the Supervisor, split across several locations. For consistency, we should consolidate all these.
For example:
FsCfg
).sup_protocol
; also, thecustom_state_path
argument of this function is only used in tests, which ends up needlessly cluttering our real code)There may be additional places where things could be consolidated; this is just from a cursory survey.
Note that there is also a core::fs module that has some similar functions; these should deal with non-Supervisor filesystem paths, though. We should base this refactoring on that module where appropriate, but endeavor to keep it restricted to purely Supervisor concerns.
The text was updated successfully, but these errors were encountered: