-
Notifications
You must be signed in to change notification settings - Fork 238
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 plugins.removeList to allow remove plugins #526
base: main
Are you sure you want to change the base?
Conversation
resolved opensearch-project#383 Signed-off-by: Yulong Ruan <[email protected]>
38f9da3
to
704bc9d
Compare
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.
Hi @ruanyl ,
Please make sure you update the changelog and versions.
And address the few comments I posted. Thanks 😄
@@ -365,6 +365,12 @@ spec: | |||
#!/usr/bin/env bash | |||
set -euo pipefail | |||
{{- range $plugin := .Values.plugins.removeList }} | |||
if ./bin/opensearch-plugin list | grep -q {{ $plugin }}; then |
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.
Why is there a different behavior b/w os and osd plugin removal?
Is it necessary to do a check before OS removal but not OSD?
@@ -278,6 +278,8 @@ plugins: | |||
enabled: false | |||
installList: [] | |||
# - example-fake-plugin-downloadable-url | |||
removeList: [] | |||
# - securityDashboards |
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.
Change this to something like - examplePluginName
or similar.
@@ -491,6 +491,8 @@ plugins: | |||
enabled: false | |||
installList: [] | |||
# - example-fake-plugin | |||
removeList: [] | |||
# - opensearch-ml |
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.
same as above.
Description
During the development phase, it's common to deploy a cluster with plugins that are still in progress. To facilitate the installation of these plugins, the current approach involves removing existing plugins and then installing the development versions. This process often requires manual intervention.
This pull request addresses this issue by introducing the
removeList
to the Helm charts. With this enhancement, we can manage the installation and removal of plugins with eliminating the need for manual intervention.Addresses the issue described in #383, where user encountered challenges related to plugin removal.
Issues Resolved
resolved #383
Check List
For any changes to files within Helm chart directories:
CHANGELOG.md
updated to reflect changeBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.