Skip to content

Get final defaults tree in code #2597

Answered by omry
OrrAvrech asked this question in Q&A
Discussion options

You must be logged in to vote

CI/Testing: when a config changes, we want to run tests to ensure that everything runs as expected. Since some configurations inherit from the modified configuration file, we should generate a list of all child configurations and perform a sanity test for each one. An API that provides access to the defaults tree would be very helpful for this purpose.

An alternative is to generate the configs using the Compose API, and compare the resulting config to the known tested config.
If a config has changed, you need to re-test the tests using it.

There are no plans to expose this as an API. You are the first user expressing need for it.
For now use the internal API for it.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by OrrAvrech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants