Skip to content

Commit

Permalink
fix: environments with multiple opensearch proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed Nov 18, 2024
1 parent 63ce224 commit 3a0d70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/scripts/opensearch-connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ main() {
fi

# get opensearch proxy pod name
OPENSEARCH_PROXY_POD=$(kubectl get pods --namespace ${namespace} | grep 'opensearch-proxy-cloud-platform' | awk '{print $1}')
OPENSEARCH_PROXY_POD=$(kubectl get pods --namespace ${namespace} | grep 'opensearch-proxy-cloud-platform' | awk '{print $1}' | head -n 1)
printf "\n****************************************************\n"
printf "Connect to http://localhost:$PORT locally\n"
printf "Press Ctrl+C to stop port forwarding \n"
Expand Down

0 comments on commit 3a0d70c

Please sign in to comment.