Skip to content

Commit

Permalink
updated kubectl_pods_dump_all.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Aug 29, 2024
1 parent 282ac11 commit 4d78bfb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kubernetes/kubectl_pods_dump_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ if ! [ "$interval_seconds" -gt 0 ]; then
die "Second arg - interval_seconds - must be an integer greater than zero!"
fi

# canonicalize to full path so we can find it from a new support-bundle dir
jdk="$(readlink -f "$jdk")"

support_bundle_dir="support-bundle-$(date '+%F_%H%M')"

mkdir -p -v "$support_bundle_dir"

cd "$support_bundle_dir"

if [ -n "$jdk" ]; then
if ! [ -f "$jdk/bin/jstack" ]; then
die "Fifth arg - jdk - must be a directory containing a JDK with jstack!"
Expand Down

0 comments on commit 4d78bfb

Please # to comment.