You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ Support extenion compat with addon as regex. (#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 <jortel@redhat.com>
0 commit comments