-
Notifications
You must be signed in to change notification settings - Fork 278
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
Update PA directories from plugins to root #1987
Update PA directories from plugins to root #1987
Conversation
7a4796c
to
a0ec728
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.
Looks good to me.
ARG PERFORMANCE_ANALYZER_PLUGIN_DIR=$OPENSEARCH_HOME/plugins/opensearch-performance-analyzer | ||
ARG PERFORMANCE_ANALYZER_PLUGIN_NAME=opensearch-performance-analyzer |
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.
Better way:
ARG PERFORMANCE_ANALYZER_PLUGIN_NAME=opensearch-performance-analyzer
ARG PERFORMANCE_ANALYZER_PLUGIN_DIR=$OPENSEARCH_HOME/plugins/$PERFORMANCE_ANALYZER_PLUGIN_NAME
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.
@sruti1312 I notice that PERFORMANCE_ANALYZER_PLUGIN_DIR
is not even used anymore, if you can confirm that please remove it.
Thanks.
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.
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.
That is the wrong location isnt it?
$PERFORMANCE_ANALYZER_PLUGIN_DIR/config/
It resolved to plugins/PA/config which you have already moved to config/PA
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.
if [[ -d $PERFORMANCE_ANALYZER_PLUGIN_DIR ]] ; then cp -v $TEMP_DIR/performance-analyzer.properties $OPENSEARCH_HOME/config/$PERFORMANCE_ANALYZER_PLUGIN_NAME/; fi && \
It checks for the plugins
directory (which will be present if PA is installed), then copies into the config folder. Check can be modified to the config directory directly.
9c93187
to
fa8c1a2
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.
Block as there are still many issues.
Signed-off-by: sruti1312 <srutiparthiban@gmail.com>
fa8c1a2
to
e0c9c60
Compare
Codecov Report
@@ Coverage Diff @@
## main #1987 +/- ##
=========================================
Coverage 94.41% 94.41%
Complexity 22 22
=========================================
Files 187 187
Lines 3739 3739
Branches 29 29
=========================================
Hits 3530 3530
Misses 203 203
Partials 6 6 Continue to review full report at Codecov.
|
@davidlago Did we do anything here differently between security and PA? |
@DarshitChanpura @cliu123 could you please confirm things are working as expected after the changes here? I see we did move the |
Signed-off-by: sruti1312 srutiparthiban@gmail.com
Description
OpenSearch moves the plugins config and bin directories into root bin and config folder. This behaviour is similar with all plugins and the expected behaviour. Modifying all PA locations to new root directory location.
Issues Resolved
opensearch-project/OpenSearch#2963
Check List
By 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.