forked from konveyor/tackle2-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Support extenion compat with addon as regex. (konveyor#782)
Both the analyzer and tech-discovery both use the same providers. An extension having compatibility with multiple addons is not a common/mainstream use case. To get around this, we have defined a duplicate set of extensions for each provider. One with compatibility with the `analyzer` addon and the other for the `tech-discovery` addon. After a recent refactor of the generic extension into multiple extensions (go, python, nodejs), it became obvious that maintain the duplicate set of extensions is painful and likely error prone. It seems a better approach is to change `Extention.Spec.Addon` to (optionally) define a regex. This approach caters to the mainstream use case that extensions have compatibility with one addon. It also avoids making the field an _array_ requiring a CRD change. This is which is MUCH simpler. The existing extensions will need to be updated to be compatible with both addons. Example (java extension): ``` addon: ^(analyzer|tech-discovery)$ ``` The `discovery-` extensions would be deleted. --------- Signed-off-by: Jeff Ortel <[email protected]>
- Loading branch information
Showing
4 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
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