59ca222550
- This commit is refactoring only, and attempts to avoid modifying functionality. Not a blueprint nor bug fix. - The goal is to be more clear and explicit when searching for program files. - The current kolla-cli client searches across many paths to find services, bootstrap, and configuation files. The changes in this git commit refactor this functionality into a single objectified PathFinder class. - It tries to make consistent and clear how it searches various locations to find service and bootstrap files. - The current code when locating service and bootstrap files locks onto the first path that exists. This code does not change that. - The current code when locating config files locks onto the first path where the file exists. This code does not change that. - Made kolla-kubernetes search paths work with editable development installs. - Added a bootstrap-dir in addition to services-dir as a command line override. Hoping to remove both in the future if people are okay with it. - Refactored kolla_kubernetes/common/file_utils.py into pathfinder.py, attempting to de-dup code paths. - Added a new KollaFileNotFoundException. - I'm happy to modify the search order and remove search paths in subsequent pull requests. The less variations we must support the better. Change-Id: I95e2423b0f29e8b3908b1a22ee68c5decd6d9fee |
||
---|---|---|
.. | ||
common | ||
__init__.py | ||
base.py |