Skip to content

Commit

Permalink
updated kubectl_port_forward.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Sep 2, 2024
1 parent 398a2c1 commit b26c53d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/kubectl_port_forward.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ if [ -n "${POD_PORT:-}" ]; then
if ! is_port "$POD_PORT"; then
die "Environment variable POD_PORT must be a valid port number integer"
fi
pod_port="$POD_PORT"
else
pod_port="$(kubectl get pod ${namespace:+-n "$namespace"} "$pod" -o jsonpath='{.spec.containers[*].ports[*].containerPort}')"
fi
Expand Down

0 comments on commit b26c53d

Please sign in to comment.