https://github.com/mikelue/ddu-source-k8s
The DDU source for K8S resources
https://github.com/mikelue/ddu-source-k8s
ddu-source kubernetes nvim-plugin user-interface
Last synced: about 1 month ago
JSON representation
The DDU source for K8S resources
- Host: GitHub
- URL: https://github.com/mikelue/ddu-source-k8s
- Owner: mikelue
- License: mit
- Created: 2025-06-21T07:57:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-05T11:57:04.000Z (11 months ago)
- Last Synced: 2025-07-05T12:41:57.696Z (11 months ago)
- Topics: ddu-source, kubernetes, nvim-plugin, user-interface
- Language: TypeScript
- Homepage:
- Size: 1.15 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ddu-source-k8s
* This plugin uses `kubectl` to build DDU list.
* The items shown is decorated by [Nerd Fonts](https://www.nerdfonts.com/) and [highlight groups](https://neovim.io/doc/user/syntax.html#hl-ColorColumn).
* Additionally, some detail information of a K8S resource is shown by [ddu-item-attribute-info](https://github.com/Shougo/ddu.vim/blob/main/doc/ddu.txt).
See [ddu-source-k8s.txt](doc/ddu-source-k8s.txt) for full documentation.
## Demo

## Requirements
* [NVIM v0.10+](https://neovim.io/)
* [denops.vim](https://github.com/vim-denops/denops.vim), [ddu.vim](https://github.com/Shougo/ddu.vim), [ddu-ui-ff](https://github.com/Shougo/ddu-ui-ff)
* [Nerd Fonts](https://www.nerdfonts.com/)
* Your favorite [ddu-matcher-filter](https://github.com/topics/ddu-filter)
* [kubectl](https://kubernetes.io/docs/reference/kubectl/)
## Installation
* [Lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{ 'mikelue/ddu-source-k8s' },
```
* [vim-plug](https://github.com/junegunn/vim-plug)
```vim
Plug 'mikelue/ddu-source-k8s'
```
* [Paq-nvim](https://github.com/savq/paq-nvim)
```lua
require('paq')({ 'mikelue/ddu-source-k8s' })
```
## Supported K8S resources
```
configmap, context, cronjob, daemonset, deployment, endpointslice,
job, namespace, node, persistentvolume, persistentvolumeclaim,
pod, replicaset, secret, service, statefulset
```
## NVIM Command
`:DduK8s [-ns=] [-c=] [-l=] [-d] {kind}`
See [ddu-source-k8s.txt](doc/ddu-source-k8s.txt) for reference of `:DduK8s`.
## Example(DDU startup)
```lua
local podOptions = {
name = 'k8s_pod',
sources = {
{
name = 'k8s_pod',
},
},
kindOptions = {
k8s_pod = {
defaultAction = 'open'
}
}
}
vim.fn['ddu#start'](podOptions)
```