From a8349f069d4fb714b201713c907be472df1ff8b2 Mon Sep 17 00:00:00 2001 From: Lalith Kota Date: Tue, 22 Oct 2024 20:57:46 +0530 Subject: [PATCH] Helm chart: Fixed dashboard init script Signed-off-by: Lalith Kota --- charts/reporting-init/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/reporting-init/values.yaml b/charts/reporting-init/values.yaml index f3e1e9b..70ef49e 100644 --- a/charts/reporting-init/values.yaml +++ b/charts/reporting-init/values.yaml @@ -301,6 +301,6 @@ startUpCommand: |- for os_dash in opensearch-dashboards/*.ndjson ; do envsubst < $os_dash > $TEMP_DASHBOARD_OBJECT_FILE echo "==> Importing Dashboard - $os_dash." - curl -u $OPENSEARCH_USERNAME:$OPENSEARCH_PASSWORD -XPOST "${OPENSEARCH_DASHBOARDS_URL}/api/saved_objects/_import?overwrite=true" -H "osd-xsrf: true" --form file=@$TEMP_DASHBOARD_OBJECT_FILE + curl -s -XPOST -u $OPENSEARCH_USERNAME:$OPENSEARCH_PASSWORD "${OPENSEARCH_DASHBOARDS_URL}/api/saved_objects/_import?overwrite=true" -H "osd-xsrf: true" --form file=@$TEMP_DASHBOARD_OBJECT_FILE | jq done fi