Skip to content
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

Allow config file splitting, update test cases #48

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Conversation

juliusv
Copy link
Member

@juliusv juliusv commented Oct 15, 2021

Sorry, this is in one commit because I didn't do a separate update of test
cases in the old, non-split config file.

You can now pass -config-file multiple times, leading for the mentioned
files to be concatenated before YAML parsing happens.

Signed-off-by: Julius Volz julius.volz@gmail.com

@juliusv
Copy link
Member Author

juliusv commented Oct 15, 2021

@bwplotka This is what I meant in #46 (comment)

Sorry, this is in one commit because I didn't do a separate update of test
cases in the old, non-split config file.

You can now pass -config-file multiple times, leading for the mentioned
files to be concatenated before YAML parsing happens.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can merge this, however looks like the only goal is to specify queries and target config in two different configs... 🙈 so why not doing just that? (From usability standpoint, two specific configs might be more clearer)

@juliusv
Copy link
Member Author

juliusv commented Oct 15, 2021

@bwplotka Yup explicitness vs. flexibility, good question. The reference API target config is the same across all my current configs as well, so theoretically that's also one that could be factored out into its own file without any code changes then... but I would feel ok either way, I'll do what you prefer :)

@juliusv
Copy link
Member Author

juliusv commented Oct 18, 2021

Will merge this for now, feel free to rebase yours on top of it and potentially change the config handling again to your liking :)

@juliusv juliusv merged commit 40aeeba into main Oct 18, 2021
@juliusv juliusv deleted the config-splitting branch October 18, 2021 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants