updated kubectl_pods_dump_all.sh

pull/16/head
Hari Sekhon 4 weeks ago
parent 714cdc6b96
commit 3df586bcc7

@ -39,18 +39,18 @@ Requires kubectl to be installed and configured
# used by usage() in lib/utils.sh # used by usage() in lib/utils.sh
# shellcheck disable=SC2034 # shellcheck disable=SC2034
usage_args="[<num_iterations> <interval_seconds> <namespace> <pod_name_regex> <jdk>]" usage_args="<jdk> [<num_iterations> <interval_seconds> <namespace> <pod_name_regex>]"
help_usage "$@" help_usage "$@"
min_args 0 "$@" min_args 0 "$@"
max_args 5 "$@" max_args 5 "$@"
num_iterations="${1:-1}" jdk="$1"
interval_seconds="${2:-300}" num_iterations="${2:-1}"
namespace="${3:-}" interval_seconds="${3:-300}"
pod_name_regex="${4:-.}" namespace="${4:-}"
jdk="${5:-}" pod_name_regex="${5:-.}"
if ! is_int "$num_iterations"; then if ! is_int "$num_iterations"; then
die "First arg - num_iterations - must be an integer!" die "First arg - num_iterations - must be an integer!"

Loading…
Cancel
Save