#!/usr/bin/env bash

pod_name=$1

# if no command is specified, list all pods
if [ -z "$pod_name" ]; then
    kubectl get pods -n tidb${CLUSTER_ID} -o wide
    exit 0
fi

kubectl exec -it -n tidb${CLUSTER_ID} ${pod_name} -- /bin/sh
