-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reclass-rs
inventory backend
#1059
Commits on Mar 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8df121f - Browse repository at this point
Copy the full SHA 8df121fView commit details -
Introduce parameters
ignore_class_notfound
andcompose_node_name
……for `get_reclass_config()` By introducing these parameters, we don't need to override as many options in the returned reclass config. Additionally, this change introduces a clean interface for getting Kapitan's expected Reclass config for the reclass-rs integration.
Configuration menu - View commit details
-
Copy full SHA for acce131 - Browse repository at this point
Copy the full SHA acce131View commit details -
Make normalisation of
nodes_uri
andclasses_uri
optionalThis commit introduces a new optional parameter for `get_reclass_config()` which allows callers to disable the normalisation of the `nodes_uri` and `classes_uri` parameters. This option is required for reclass-rs, which expects these parameters to be relative to the inventory path, rather than relative to the working directory.
Configuration menu - View commit details
-
Copy full SHA for 100e575 - Browse repository at this point
Copy the full SHA 100e575View commit details -
Implement inventory backend for reclass-rs
We reuse `get_reclass_config()` in the `ReclassRsInventory` backend. Additionally, we make the backend selectable through the `--inventory-backend` CLI option.
Configuration menu - View commit details
-
Copy full SHA for d655b12 - Browse repository at this point
Copy the full SHA d655b12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 112b492 - Browse repository at this point
Copy the full SHA 112b492View commit details -
Add test case for
componse-node-name
This commit is based on the test case introduced in PR kapicorp#1138. We move the compose-node-name test implementation to `tests/` so it's stored in the same place as the other tests and make the test class inheritable so that we can reuse the test for reclass-rs. Additionally we extend the test to check that all targets found by `search_targets()` are rendered by `render_targets()`. This is needed since we don't use reclass(-rs)'s target discovery logic in `search_targets()` but instead use a simplified version that's implemented directly in Kapitan's inventory backend base class. However, `render_targets()` then renders whatever targets reclass(-rs)'s target discovery finds, so if there's a mismatch we'd want to be informed. Co-authored-by: Matteo Voges <[email protected]> Co-authored-by: Simon Gerber <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 251e82b - Browse repository at this point
Copy the full SHA 251e82bView commit details -
Log timing information for reclass(-rs) if verbose logging is requested
We implement the timing simply by executing `datetime.now()` before and after the call to the method which renders the reclass inventory.
Configuration menu - View commit details
-
Copy full SHA for 1e1dcf5 - Browse repository at this point
Copy the full SHA 1e1dcf5View commit details -
Update
test_coverage
make target to not ignore files matching `*rec……lass*` This is not required anymore since we don't import reclass as a Python submodule anymore.
Configuration menu - View commit details
-
Copy full SHA for f8abe41 - Browse repository at this point
Copy the full SHA f8abe41View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd01d2b - Browse repository at this point
Copy the full SHA dd01d2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f01abc - Browse repository at this point
Copy the full SHA 7f01abcView commit details