Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple Kubel buffers, each one using a different combination of Contex, Namespace, Resource, Filters, and Labels. #57

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 20 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ You can [watch how kubel started](https://www.youtube.com/watch?v=w3krYEeqnyk) o
## Features
We now support managing pretty much any resource!

- switch context and namespace
- show any resource (pods/services/deployments/etc)
- highlight a resource by name
- copy resource name to clipboard
- show and edit resource details
- show rollout history for a resource
- delete a resource
- tail container logs (possibly with `-f` follow flag)
- copy container log command to clipboard
- port forward a pod to your localhost
- exec into a pod using tramp
- quick run shell-command
- scale replicas
- Switch context and namespace.
- Show any resource (pods/services/deployments/etc).
- Highlight a resource by name.
- Copy resource name to clipboard.
- Show and edit resource details.
- Show rollout history for a resource.
- Delete a resource.
- Tail container logs (possibly with `-f` follow flag).
- Copy container log command to clipboard.
- Port forward a pod to your localhost.
- Exec into a pod using tramp.
- Multiple kubel buffers, each one with different context, namespace, and resource.
- Quick run shell-command
- Scale replicas

## Installation

Expand All @@ -37,7 +38,7 @@ load the `kubel-evil.el` file.

To list the pods in your current context and namespace, call
```
M-x kubel
M-x kubel-refresh
d1egoaz marked this conversation as resolved.
Show resolved Hide resolved
```
To set said namespace and context, respectively call
```
Expand All @@ -54,6 +55,11 @@ M-x kubel-set-resource
```
This will let you select a resource and re-display the kubel buffer.

You can also use `kubel-open` to open directly a kubel buffer with the given parameters, example:
``` lisp
(kubel-open "custom-context" "custom-namespace" "custom-resource"))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

big fan of this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using it every day, you get a lot of time back as you don't need to wait for getting the list of context, list of namespaces and get list of pods, you can go directly to where you're interested.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's really sweet. I'm also gonna hook it up to magit post-commit or something so I can monitor my deployment once I push a release.

```

## Shortcuts

On the kubel screen, place your cursor on a resource
Expand Down
4 changes: 2 additions & 2 deletions kubel-evil.el
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
;; global
("RET" "Resource details" kubel-describe-popup)
("E" "Quick edit" kubel-quick-edit)
("g" "Refresh" kubel)
("g" "Refresh" kubel-refresh)
("d" "Delete" kubel-delete-popup) ;; can't use k here
("r" "Rollout" kubel-rollout-history)]
["" ;; based on current view
Expand Down Expand Up @@ -112,7 +112,7 @@
(kbd "K") #'kubel-set-kubectl-config-file
(kbd "C") #'kubel-set-context
(kbd "n") #'kubel-set-namespace
(kbd "g") #'kubel
(kbd "g") #'kubel-refresh
(kbd "h") #'kubel-evil-help-popup
(kbd "?") #'kubel-evil-help-popup
(kbd "F") #'kubel-set-output-format
Expand Down
Loading