-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend the GitHub App configuration with an autoRegistration object (#…
…3449) * Add the protobuf struct for generic provider options In order to actually set the auto-registration of entities, we need to be able to configure those options. This patch adds two structures: AutoRegistration which contains a list of entities to auto-register and ProviderConfig which contains the AutoRegistration. The idea behind this is that any provider would be able to use the ProviderConfig attributes regardless of the provider type. So as an example, both would be valid: ``` { "auto_registration": { "enabled": ["repository"] }, "github": { "endpoint": "https://api.github.com" }} ``` and: ``` { "auto_registration": { "enabled": ["repository"] }, "github-app": { "endpoint": "https://api.github.com" }} ``` and all would require just embedding the ProviderConfig structure into the provider-specific parser. Fixes: #3266 * Parse out ProviderConfig as well when reading GH App configuration Amends the ParseV1AppConfig to also include parsing the minderv1.GitHubAppProviderConfig structure. The parsed-out object is not used yet, but it's parsed and validated and the new code is tested. Related: #3266
- Loading branch information
Showing
9 changed files
with
2,372 additions
and
2,050 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.