-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Add support for reading stable plugin descriptors #88731
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
Add support for reading stable plugin descriptors #88731
Conversation
The new stable plugin api will have a slightly different descriptor file format. This commit prepares for stable plugins by adding support for reading those new files. The basic info for a plugin is the same like name and version info. Other stuff like classname are not necessary. The one additional property specific to the new plugins is "modular", which indicates whether the jars of the plugin should be loaded as named modules (this is akin to setting the module path when running java).
Pinging @elastic/es-core-infra (Team:Core/Infra) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Looks great, I really like how all the tests simply run for both. It looks like there are two more tests that need to be adjusted for the new missing descriptors error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
A forgotten piece of elastic#88731 is whether a plugin descriptor in memory came from a stable or internal descriptor. This commit adds a flag for that. Note that this is implied by the file that was loaded, so no new property is needed.
A forgotten piece of #88731 is whether a plugin descriptor in memory came from a stable or internal descriptor. This commit adds a flag for that. Note that this is implied by the file that was loaded, so no new property is needed.
The new stable plugin api will have a slightly different descriptor file
format. This commit prepares for stable plugins by adding support for
reading those new files. The basic info for a plugin is the same like
name and version info. Other stuff like classname are not necessary. The
one additional property specific to the new plugins is "modular", which
indicates whether the jars of the plugin should be loaded as named
modules (this is akin to setting the module path when running java).