List all resources and subresources of cluster
_list=($(kubectl get --raw / | grep "^ \"/api" | sed 's/[",]//g'))
for _api in ${_list[@]}; do
_aruyo=$(kubectl get --raw ${_api} | jq .resources)
if [ "x${_aruyo}" != "xnull" ]; then
echo
echo "===${_api}==="
kubectl get --raw ${_api} | jq -r ".resources[].name"
fi
done