dotfiles/.local/bin/scripts/k8sviz

9 lines
240 B
Bash
Executable File

#!/bin/sh -e
ns=${1:-stackspin}
case "$1" in
("") /opt/k8sviz/k8sviz.sh --help;;
(-*) /opt/k8sviz/k8sviz.sh "$@";;
(*) set -x
/opt/k8sviz/k8sviz.sh --kubeconfig $KUBECONFIG --namespace "$ns" -t png -o "$(date +%y%m%d)_$ns.png";;
esac