Skip to content

fix silent failure in eks-aperf.sh#322

Merged
CristianPrundeanu merged 2 commits intoaws:mainfrom
natict:patch-1
Oct 15, 2025
Merged

fix silent failure in eks-aperf.sh#322
CristianPrundeanu merged 2 commits intoaws:mainfrom
natict:patch-1

Conversation

@natict
Copy link
Copy Markdown
Contributor

@natict natict commented Oct 15, 2025

Issue #, if available: NA

Description of changes:
fixing an issue where if /tmp/allpods.out doesn't exist the script will fail silently

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

fixing an issue where if /tmp/allpods.out doesn't exist the script will fail silently
@natict natict requested a review from a team as a code owner October 15, 2025 08:44
eks-aperf.sh Outdated
# Show resource usage for pods on this node
echo -e "${BOLD}Resource usage for pods on ${NODE_NAME}:${NC}"
rm /tmp/allpods.out 2> /dev/null; \
rm /tmp/allpods.out 2> /dev/null || true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this line at all. The next line overwrites the file unconditionally.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated PR

@CristianPrundeanu CristianPrundeanu merged commit e99f8dc into aws:main Oct 15, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants