From 1e61cb04e1f91603dd43a3acbf651943d04ce3ae Mon Sep 17 00:00:00 2001 From: Fede Tux Date: Mon, 15 Jan 2024 15:42:04 -0300 Subject: [PATCH] Assemble packages with minimal plugin set when "test" variable is set to "true" --- scripts/assemble.sh | 59 +++++++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/scripts/assemble.sh b/scripts/assemble.sh index f88b075257a4d..1fc2f57696b59 100755 --- a/scripts/assemble.sh +++ b/scripts/assemble.sh @@ -9,32 +9,39 @@ set -ex -# Minimum required plugins -# plugins=( -# "performance-analyzer" -# "opensearch-security" -# ) - -plugins=( - "alerting" # "opensearch-alerting" - "opensearch-job-scheduler" - "opensearch-anomaly-detection" # Requires "opensearch-job-scheduler" - "asynchronous-search" # "opensearch-asynchronous-search" - "opensearch-cross-cluster-replication" - "geospatial" # "opensearch-geospatial" - "opensearch-index-management" - "opensearch-knn" - "opensearch-ml-plugin" # "opensearch-ml" - "neural-search" # "opensearch-neural-search" - "opensearch-notifications-core" - "notifications" # "opensearch-notifications". Requires "opensearch-notifications-core" - "opensearch-observability" - "performance-analyzer" # "opensearch-performance-analyzer" - "opensearch-reports-scheduler" - "opensearch-security" - "opensearch-security-analytics" - "opensearch-sql-plugin" # "opensearch-sql" -) +### The $test variable determines whether we include a minimalistic +### or the full set of OpenSearch plugins + +test=${test:-false} + +if ( $test ) +then + plugins=( + "performance-analyzer" + "opensearch-security" + ) +else + plugins=( + "alerting" # "opensearch-alerting" + "opensearch-job-scheduler" + "opensearch-anomaly-detection" # Requires "opensearch-job-scheduler" + "asynchronous-search" # "opensearch-asynchronous-search" + "opensearch-cross-cluster-replication" + "geospatial" # "opensearch-geospatial" + "opensearch-index-management" + "opensearch-knn" + "opensearch-ml-plugin" # "opensearch-ml" + "neural-search" # "opensearch-neural-search" + "opensearch-notifications-core" + "notifications" # "opensearch-notifications". Requires "opensearch-notifications-core" + "opensearch-observability" + "performance-analyzer" # "opensearch-performance-analyzer" + "opensearch-reports-scheduler" + "opensearch-security" + "opensearch-security-analytics" + "opensearch-sql-plugin" # "opensearch-sql" + ) +fi # ==== # Usage