feat(kubectl): add kg, kd and endpoints aliases

The plugin builds dozens of aliases on `kubectl get` and `kubectl
describe` but never had the two base commands, and had no way to
reach endpoints.

Closes #8851
Closes #9161

Co-Authored-By: Mirco Haug <git@mircohaug.de>
Co-Authored-By: Shini31 <github@capitoul.net>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
committed 2026-11-24 12:12:58 -08:00
1 parent a32fc1d8ae
commit 0c331c78d2
2 files changed
+13

No files matched your search

+7
View File
@@ -47,6 +47,8 @@ alias kdelf='kubectl delete -f'
alias kdelk='kubectl delete -k'
alias kge='kubectl get events --sort-by=".lastTimestamp"'
alias kgew='kubectl get events --sort-by=".lastTimestamp" --watch'
alias kg='kubectl get'
alias kd='kubectl describe'
# Pod management.
alias kgp='kubectl get pods'
@@ -168,6 +170,11 @@ alias kepvc='kubectl edit pvc'
alias kdpvc='kubectl describe pvc'
alias kdelpvc='kubectl delete pvc'
# Endpoints management.
alias kged='kubectl get endpoints'
alias kgeda='kubectl get endpoints --all-namespaces'
alias kded='kubectl describe endpoints'
# Service account management.
alias kdsa="kubectl describe sa"
alias kdelsa="kubectl delete sa"