Compare commits

..
Author SHA1 Message Date
0c331c78d2 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>
2026-11-24 12:12:58 -08:00
4 changed files with 15 additions and 2 deletions

No files matched your search

+6
View File
@@ -31,6 +31,8 @@ plugins=(... kubectl)
| kdelk | `kubectl delete -k` | Delete all resources defined in a kustomization directory |
| kge | `kubectl get events --sort-by=".lastTimestamp"` | Get events (sorted by timestamp) |
| kgew | `kubectl get events --watch --sort-by=".lastTimestamp"` | Get events and watch as they occur (sorted by timestamp) |
| kg | `kubectl get` | Get one or more resources |
| kd | `kubectl describe` | Describe one or more resources in detail |
| | | **Pod management** |
| kgp | `kubectl get pods` | List all pods in ps output format |
| kgpl | `kgp -l` | Get pods by label. Example: `kgpl "app=myapp" -n myns` |
@@ -122,6 +124,10 @@ plugins=(... kubectl)
| kepvc | `kubectl edit pvc` | Edit pvcs from the default editor |
| kdpvc | `kubectl describe pvc` | Describe all pvcs |
| kdelpvc | `kubectl delete pvc` | Delete all pvcs matching passed arguments |
| | | **Endpoints management** |
| kged | `kubectl get endpoints` | List all endpoints |
| kgeda | `kubectl get endpoints --all-namespaces` | List all endpoints across all namespaces |
| kded | `kubectl describe endpoints` | Describe endpoints in detail |
| | | **StatefulSets management** |
| kgss | `kubectl get statefulset` | List the statefulsets in ps format |
| kgssa | `kubectl get statefulset --all-namespaces` | List statefulsets across all namespaces |
+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"
+1 -1
View File
@@ -107,7 +107,7 @@ EOF
echo "\tlaunch|play|pause|stop|rewind|resume|quit"
echo "\tmute|unmute\tMute or unmute $APP_NAME"
echo "\tnext|previous\tPlay next or previous track"
echo "\tshuf|shuffle [on|off|toggle]\tSet shuffled playback. Default: toggle."
echo "\tshuf|shuffle [on|off|toggle]\tSet shuffled playback. Default: toggle. Note: toggle doesn't support the MiniPlayer."
echo "\tvol [0-100|up|down]\tGet or set the volume. 0 to 100 sets the volume. 'up' / 'down' increases / decreases by 10 points. No argument displays current volume."
echo "\tplaying|status\tShow what song is currently playing in Music."
echo "\tplaylist [playlist name]\t Play specific playlist"
+1 -1
View File
@@ -22,7 +22,7 @@ plugins=(... uv)
| uvlu | `uv lock --upgrade` | Lock the dependencies to the newest compatible versions |
| uvp | `uv pip` | Manage pip packages |
| uvpi | `uv python install` | Install a specific version of python |
| uvpl | `uv python list` | List all installed Python versions. |
| uvpl | `uv python list` | Lists all python version installed |
| uvpp | `uv python pin` | Pin the current project to use a specific Python version |
| uvpu | `uv python uninstall` | Remove a specific version of python |
| uvpy | `uv python` | Manage Python installs |