-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Introduce declarative plugin management (#77544) #80734
Merged
elasticsearchmachine
merged 1 commit into
elastic:7.16
from
pugnascotia:70219-declarative-plugins-7.16
Nov 15, 2021
Merged
Introduce declarative plugin management (#77544) #80734
elasticsearchmachine
merged 1 commit into
elastic:7.16
from
pugnascotia:70219-declarative-plugins-7.16
Nov 15, 2021
Conversation
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
Closes elastic#70219. Introduce a declarative way for the Elasticsearch server to manage plugins, which reads the `elasticsearch-plugins.yml` file and works which out plugins need to be added and / or removed to match the configuration. Also make it possible to configure a proxy in the config file, instead of through the environment. Most of the work of adding and removing is still done in the `InstallPluginAction` and `RemovePluginAction` classes, so the behaviour should be the same as with the `install` and `remove` commands. However, these commands will now abort if the above config file exists. The intent is to make it harder for the configuration to drift. This new method only applies to `docker` distribution types at the moment. Since this syncing mechanism declarative, rather than imperative, the Cloud-specific plugin wrapper script is no longer required. Instead, an environment variable informs `InstallPluginAction` to install plugins from an archive directory instead of downloading them, where possible.
pugnascotia
added
>feature
:Core/Infra/Plugins
Plugin API and infrastructure
backport
:Delivery/Cloud
Cloud-specific packaging and deployment
auto-merge-without-approval
Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!)
v7.16.0
labels
Nov 15, 2021
elasticmachine
added
Team:Delivery
Meta label for Delivery team
Team:Core/Infra
Meta label for core/infra team
labels
Nov 15, 2021
Pinging @elastic/es-delivery (Team:Delivery) |
Pinging @elastic/es-core-infra (Team:Core/Infra) |
elasticsearchmachine
pushed a commit
that referenced
this pull request
Nov 15, 2021
Use order agnostic assertion when testing plugin installation. https://gradle-enterprise.elastic.co/s/57wwszvhfzwnw/tests/:qa:os:destructiveDistroTest.default-dockerCloud/org.elasticsearch.packaging.test.DockerTests/test022InstallPlugin @pugnascotia This will likely need to be included in your backport of #80734
pugnascotia
pushed a commit
that referenced
this pull request
Nov 16, 2021
Use order agnostic assertion when testing plugin installation. https://gradle-enterprise.elastic.co/s/57wwszvhfzwnw/tests/:qa:os:destructiveDistroTest.default-dockerCloud/org.elasticsearch.packaging.test.DockerTests/test022InstallPlugin @pugnascotia This will likely need to be included in your backport of #80734
mark-vieira
added a commit
to mark-vieira/elasticsearch
that referenced
this pull request
Nov 16, 2021
Use order agnostic assertion when testing plugin installation. https://gradle-enterprise.elastic.co/s/57wwszvhfzwnw/tests/:qa:os:destructiveDistroTest.default-dockerCloud/org.elasticsearch.packaging.test.DockerTests/test022InstallPlugin @pugnascotia This will likely need to be included in your backport of elastic#80734 # Conflicts: # qa/os/src/test/java/org/elasticsearch/packaging/test/DockerTests.java
elasticsearchmachine
pushed a commit
that referenced
this pull request
Nov 16, 2021
* Fix DockerTests.test022InstallPlugin assertion (#80741) Use order agnostic assertion when testing plugin installation. https://gradle-enterprise.elastic.co/s/57wwszvhfzwnw/tests/:qa:os:destructiveDistroTest.default-dockerCloud/org.elasticsearch.packaging.test.DockerTests/test022InstallPlugin @pugnascotia This will likely need to be included in your backport of #80734 # Conflicts: # qa/os/src/test/java/org/elasticsearch/packaging/test/DockerTests.java * Fix compiler error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
auto-merge-without-approval
Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!)
backport
:Core/Infra/Plugins
Plugin API and infrastructure
:Delivery/Cloud
Cloud-specific packaging and deployment
>feature
Team:Core/Infra
Meta label for core/infra team
Team:Delivery
Meta label for Delivery team
v7.16.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #77544.
Closes #70219.
Introduce a declarative way for the Elasticsearch server to manage plugins,
which reads the
elasticsearch-plugins.yml
file and works which outplugins need to be added and / or removed to match the configuration. Also
make it possible to configure a proxy in the config file, instead of
through the environment.
Most of the work of adding and removing is still done in the
InstallPluginAction
andRemovePluginAction
classes, so thebehaviour should be the same as with the
install
andremove
commands. However, these commands will now abort if the above config
file exists. The intent is to make it harder for the configuration
to drift.
This new method only applies to
docker
distribution types at themoment.
Since this syncing mechanism declarative, rather than imperative,
the Cloud-specific plugin wrapper script is no longer required.
Instead, an environment variable informs
InstallPluginAction
toinstall plugins from an archive directory instead of downloading
them, where possible.