-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[plugin installer] Allow x-pack removal if it exists #19327
Conversation
💚 Build Succeeded |
/cc @elastic/kibana-operations |
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 - though I don't know how someone could get into this state. Tested by copying the x-pack plugin from a previous install.
Should be able to resolve the conflicts by running |
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. (just reviewed the code)
💔 Build Failed |
retest |
💚 Build Succeeded |
* [plugin installer] Allow x-pack removal if it exists * remove lingering exit
* [plugin installer] Allow x-pack removal if it exists * remove lingering exit
@jbudz just updated your last comment to include the merge hash for the backport PR to 6.3.1 😃 |
* [plugin installer] Allow x-pack removal if it exists * remove lingering exit
When performing an in-place upgrade from an install with x-pack to the default distribution in 6.3, an old x-pack install is unable to be removed with the plugin installer after upgrading. This lets the plugin installer remove plugins/x-pack regardless of distribution if it exists.
This also rewrites the tests to jest. At some point between when this was written and merged, the other tests were updated, so this gets the rest up to speed.
To test, in the distribution including x-pack:
bin/kibana-plugin remove x-pack
with an x-pack plugin in the plugins folder should remove the pluginbin/kibana-plugin remove x-pack
without an x-pack plugin should messageYou are using the standard distrbution of Kibana. Please install the OSS-only distribution to remove X-Pack features.
Part of #18813