Skip to content

Commit

Permalink
Merge pull request #33 from lalithkota/develop
Browse files Browse the repository at this point in the history
Dashboards Script: Fixed.
  • Loading branch information
lalithkota authored Oct 18, 2024
2 parents 6e59767 + aaf9cff commit 703612c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/reporting-init/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ startUpCommand: |-
TEMP_DASHBOARD_OBJECT_FILE="/tmp/temp_kib_obj.ndjson"
for os_dash in opensearch-dashboards/*.ndjson ; do
$(envsubst < $os_dash) > $TEMP_DASHBOARD_OBJECT_FILE
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_OBJ_FILE
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
done
fi

0 comments on commit 703612c

Please sign in to comment.