Compare commits

..

No commits in common. "8947abc59d52c729e6ffa154ad341bb318a6a298" and "c69e2c85dd37190bdf279d2e7762e1f2984019d2" have entirely different histories.

2 changed files with 0 additions and 2 deletions

View File

@ -10,7 +10,6 @@ It is lightweight and easy to customize
- `3` - edit resource - `3` - edit resource
- `4` - logs of pod - `4` - logs of pod
- `5` - exec to pod - `5` - exec to pod
- `6` - network debug of pod (with nicolaka/netshoot container attached)
- `delete` - delete resource - `delete` - delete resource
You can customize these bindings or add extra bindings in `KEY_BINDINGS` variable of `kls` (in a row #6). You can customize these bindings or add extra bindings in `KEY_BINDINGS` variable of `kls` (in a row #6).

1
kls
View File

@ -7,7 +7,6 @@ KEY_BINDINGS = { # can be extended
"3": 'kubectl -n {namespace} edit {api_resource} {resource}', "3": 'kubectl -n {namespace} edit {api_resource} {resource}',
"4": 'kubectl -n {namespace} logs {resource} | batcat -l log --paging always --style numbers', "4": 'kubectl -n {namespace} logs {resource} | batcat -l log --paging always --style numbers',
"5": 'kubectl -n {namespace} exec -it {resource} sh', "5": 'kubectl -n {namespace} exec -it {resource} sh',
"6": 'kubectl -n {namespace} debug {resource} -it --image=nicolaka/netshoot',
"KEY_DC": 'kubectl -n {namespace} delete {api_resource} {resource}' # KEY_DC is the delete key "KEY_DC": 'kubectl -n {namespace} delete {api_resource} {resource}' # KEY_DC is the delete key
} }
# which api resources are on the top of menu? # which api resources are on the top of menu?