dotfiles/dot_config/fish/private_functions/kgetall.fish
2025-01-19 10:54:07 +01:00

6 lines
198 B
Fish

function kgetall
for i in (kubectl api-resources --verbs=list --namespaced -o name | grep -v "events.events.k8s.io" | grep -v "events" | sort | uniq)
echo -e "\nResource:" $i
kubectl get $i
end
end