Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Default config values are set after parsing / mapping to config struct #43

Merged
merged 5 commits into from
Apr 28, 2022

Conversation

mikouaj
Copy link
Member

@mikouaj mikouaj commented Apr 24, 2022

So far default config values (policy source's default GIT repo params) were set only when CLI flags were passed.
It was not possible to use config.yaml with default policy source assumed.

This PR changes this behaviour so defaults are now applied in a consistent way - i.e. it will be possible to use config.yaml without any policy sources defined. In a such case, the the tool will use default repo.

internal/app/app_test.go Outdated Show resolved Hide resolved
@mikouaj mikouaj merged commit 8131a34 into main Apr 28, 2022
@mikouaj mikouaj deleted the default-policy-config branch April 28, 2022 16:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants