Skip to content

Commit

Permalink
fix pod name
Browse files Browse the repository at this point in the history
Signed-off-by: chahatsagarmain <chahatsagar2003@gmail.com>
  • Loading branch information
chahatsagarmain committed Feb 14, 2025
1 parent 584efcd commit 24e8716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/resources/scripts/collect-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function display_pod_info {
local NAMESPACE=$1
local POD_NAMES

POD_NAMES=$(kubectl -n "${NS}" -l get pods -o custom-columns=":metadata.name" --no-headers)
POD_NAMES=$(kubectl get pods -n "${NS}" -o custom-columns=":metadata.name" --no-headers)

if [[ -z "${POD_NAMES}" ]]; then
echo "No pods found in namespace '${NAMESPACE}'." | tee -a "$OUTPUT_FILE"
Expand Down

0 comments on commit 24e8716

Please sign in to comment.