From 11bb359d20e1198961b69d27f0d02edf28173e46 Mon Sep 17 00:00:00 2001 From: Lalith Kota Date: Sat, 2 Nov 2024 03:06:51 +0530 Subject: [PATCH] Init Helm Chart: Geojson file name parsing fixed Signed-off-by: Lalith Kota --- charts/reporting-init/values.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/reporting-init/values.yaml b/charts/reporting-init/values.yaml index c6793db..a079c22 100644 --- a/charts/reporting-init/values.yaml +++ b/charts/reporting-init/values.yaml @@ -325,6 +325,10 @@ startUpCommand: |- for geojson_file in opensearch-dashboards/*.geojson ; do index_name=$(basename "$geojson_file" ".geojson") index_name=${index_name// /_} + if [[ $index_name =~ \. ]]; then + index_name=${index_name#*.} + index_name=${index_name//./_} + fi if [ -n "$index_name" ]; then echo "==> Importing Geojson - $geojson_file."