Skip to content

Commit

Permalink
Helm chart: Fixed dashboard init script
Browse files Browse the repository at this point in the history
Signed-off-by: Lalith Kota <[email protected]>
  • Loading branch information
lalithkota committed Oct 22, 2024
1 parent 33ee281 commit a8349f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/reporting-init/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a8349f0

Please sign in to comment.