]> git.eshelyaron.com Git - kubed.git/log
kubed.git
3 months agoNew commands that run kubectl with resource at point as arg
Eshel Yaron [Fri, 2 Aug 2024 17:21:56 +0000 (19:21 +0200)]
New commands that run kubectl with resource at point as arg

* kubed.el (kubed-define-resource): Also generate
'kubed-RESOURCEs-kubectl-command' command and bind it to "!"
in resource list buffers.
(kubed-read-kubectl-command): New function, extracted from..
(kubed-kubectl-command): ...here.

3 months agoNew command 'kubed-list-copy-as-kill'
Eshel Yaron [Fri, 2 Aug 2024 17:20:45 +0000 (19:20 +0200)]
New command 'kubed-list-copy-as-kill'

* kubed.el (kubed-list-copy-as-kill): New command.
(kubed-list-mode-map): Bind it to "w".

3 months ago(cobra-read-command-line): Fix handling of cons INITIAL arg
Eshel Yaron [Fri, 2 Aug 2024 17:15:49 +0000 (19:15 +0200)]
(cobra-read-command-line): Fix handling of cons INITIAL arg

3 months agoUpdate NEWS.org and bump version to 0.2.0 v0.2.0
Eshel Yaron [Fri, 2 Aug 2024 15:12:05 +0000 (17:12 +0200)]
Update NEWS.org and bump version to 0.2.0

3 months ago(List Filter): Document 'kubed-list-filter-operator-alist'
Eshel Yaron [Fri, 2 Aug 2024 14:42:18 +0000 (16:42 +0200)]
(List Filter): Document 'kubed-list-filter-operator-alist'

3 months agoNew user option 'kubed-list-filter-operator-alist'
Eshel Yaron [Fri, 2 Aug 2024 14:33:45 +0000 (16:33 +0200)]
New user option 'kubed-list-filter-operator-alist'

* kubed.el (kubed-list-filter-operator-alist): New option.
(kubed-list-interpret-atomic-filter)
(kubed-list-validate-atomic-filter): Use it instead of hardcoding
operators "=" and "~".
(kubed-list-set-filter): Adjust docstring.

3 months ago; * kubed.texi (Browsing Resources): Tweak wording.
Eshel Yaron [Fri, 2 Aug 2024 14:33:03 +0000 (16:33 +0200)]
; * kubed.texi (Browsing Resources): Tweak wording.

3 months ago; * kubed.texi (Browsing Resources): Fix markup.
Eshel Yaron [Fri, 2 Aug 2024 08:49:52 +0000 (10:49 +0200)]
; * kubed.texi (Browsing Resources): Fix markup.

3 months agoDocument a couple more 'tabulated-list-mode' commands
Eshel Yaron [Fri, 2 Aug 2024 08:43:41 +0000 (10:43 +0200)]
Document a couple more 'tabulated-list-mode' commands

* kubed.texi (Browsing Resources): Extend.

3 months agoDocument resource lists and their filters
Eshel Yaron [Fri, 2 Aug 2024 08:34:17 +0000 (10:34 +0200)]
Document resource lists and their filters

* kubed.texi (Usage): Add anchor for 'kubed-prefix-map'.
(Browsing Resources): Populate.
(List Filter): New node.

3 months agoNew commands for table navigation
Eshel Yaron [Fri, 2 Aug 2024 07:43:08 +0000 (09:43 +0200)]
New commands for table navigation

* kubed.el (kubed-list-previous-column)
(kubed-list-next-column): New commands.
(kubed-list-mode-map): Bind them.

3 months ago(kubed-list-read-filter-map): Bind 'completion-help-at-point'.
Eshel Yaron [Fri, 2 Aug 2024 07:42:38 +0000 (09:42 +0200)]
(kubed-list-read-filter-map): Bind 'completion-help-at-point'.

3 months ago; * kubed.el (kubed-list-read-filter): Also complete operators.
Eshel Yaron [Thu, 1 Aug 2024 20:13:16 +0000 (22:13 +0200)]
; * kubed.el (kubed-list-read-filter): Also complete operators.

3 months ago; * kubed.el (kubed-list-read-filter): Fix typo.
Eshel Yaron [Thu, 1 Aug 2024 20:09:20 +0000 (22:09 +0200)]
; * kubed.el (kubed-list-read-filter): Fix typo.

3 months agoEnhance 'kubed-list-read-filter'
Eshel Yaron [Thu, 1 Aug 2024 19:03:07 +0000 (21:03 +0200)]
Enhance 'kubed-list-read-filter'

Add in-minibuffer feedback for invalid filters and completion for
column names and column values.

* kubed.el (kubed-list-validate-atomic-filter)
(kubed-list-validate-filter): Refine validation.
(kubed--list-read-filter-target-buffer): New local var.
(kubed-list-try-read-filter): New command.
(kubed-list-read-filter-map): New keymap.
(kubed-list-read-filter): Use it, add completion support.

3 months agoNew command 'kubed-list-set-filter' in list buffers
Eshel Yaron [Thu, 1 Aug 2024 15:45:06 +0000 (17:45 +0200)]
New command 'kubed-list-set-filter' in list buffers

* kubed.el: (kubed-list-filter-history-variable)
(kubed-list-filter): New buffer-local variables.
(kubed-list-interpret-atomic-filter)
(kubed-list-interpret-filter)
(kubed-list-validate-atomic-filter)
(kubed-list-validate-filter)
(kubed-list-read-filter): New functions.
(kubed-list-set-filter): New command.
(kubed-list-mode-map): Bind it.
(kubed-define-resource): Use it.

3 months agoAdd common parent mode for resource lists mode
Eshel Yaron [Thu, 1 Aug 2024 14:53:12 +0000 (16:53 +0200)]
Add common parent mode for resource lists mode

3 months agoUse multi-column layout for transient menus
Eshel Yaron [Thu, 1 Aug 2024 07:40:19 +0000 (09:40 +0200)]
Use multi-column layout for transient menus

* kubed-transient.el (kubed-transient)
(kubed-transient-attach, kubed-transient-diff)
(kubed-transient-exec, kubed-transient-run)
(kubed-transient-apply, kubed-transient-patch)
(kubed-transient-create, kubed-transient-create-cronjob)
(kubed-transient-create-ingress, kubed-transient-create-job)
(kubed-transient-create-deployment): Use multiple columns.

3 months agoEnsure SPC is self-inserting when reading kubectl command line
Eshel Yaron [Wed, 31 Jul 2024 10:21:39 +0000 (12:21 +0200)]
Ensure SPC is self-inserting when reading kubectl command line

* cobra.el (cobra-read-command-line): Ensure SPC key is
self-inserting in the minibuffer.

3 months agoNew command 'kubed-transient-rollout'
Eshel Yaron [Wed, 31 Jul 2024 06:54:52 +0000 (08:54 +0200)]
New command 'kubed-transient-rollout'

* kubed-transient.el (kubed-transient-rollout): New command.
(kubed-transient): Bind it.
* kubed.el (kubed-watch-deployment-status)
(kubed-restart-deployment): Use namespace argument from
transient when specified.

3 months agoNew command 'kubed-watch-deployment-status'
Eshel Yaron [Wed, 31 Jul 2024 05:57:27 +0000 (07:57 +0200)]
New command 'kubed-watch-deployment-status'

* kubed.el (kubed-watch-deployment-status): New command.
(kubed-restart-deployment-watch-status): New use option.
(kubed-restart-deployment): Use them.
(deployment): Bind it in prefix map and in list buffer.

3 months ago; Fix 'restart' command name in deployments list buffer
Eshel Yaron [Wed, 31 Jul 2024 05:55:34 +0000 (07:55 +0200)]
; Fix 'restart' command name in deployments list buffer

3 months agoBind 'kubed-restart-deployment' in 'kubed-deployment-prefix-map'
Eshel Yaron [Tue, 30 Jul 2024 20:26:46 +0000 (22:26 +0200)]
Bind 'kubed-restart-deployment' in 'kubed-deployment-prefix-map'

3 months agoNew command 'kubed-restart-deployment'
Eshel Yaron [Tue, 30 Jul 2024 20:20:46 +0000 (22:20 +0200)]
New command 'kubed-restart-deployment'

* kubed.el (kubed-restart-deployment)
(kubed-deployments-restart): New commands.

3 months ago; * kubed.el (kubed-define-resource): Remove extraneous quote.
Eshel Yaron [Tue, 30 Jul 2024 14:35:45 +0000 (16:35 +0200)]
; * kubed.el (kubed-define-resource): Remove extraneous quote.

3 months agoNew commands for creating jobs from cronjobs
Eshel Yaron [Tue, 30 Jul 2024 14:06:11 +0000 (16:06 +0200)]
New commands for creating jobs from cronjobs

* kubed-transient.el (kubed-transient-create-job): New
command.
(kubed-transient-create): Bind it.
* kubed.el (kubed-define-resource): Change binding of
generated 'kubed-create-RESOURCE' to "+" in resource
type-specific prefix map.
(kubed-create-job-from-cronjob): New command.
(job): Refine 'kubed-create-job'.
(kubed-container-images-history): Rename to...
(kubed-container-image-history): ...this.  New variable.
(kubed-read-container-images): Replace with...
(kubed-read-container-image): ...this.  New function.
(deployment, cronjob, kubed-run): Adjust.

3 months ago* kubed.texi (Extending Kubed): Populate.
Eshel Yaron [Tue, 30 Jul 2024 11:55:42 +0000 (13:55 +0200)]
* kubed.texi (Extending Kubed): Populate.

3 months ago; * kubed.texi (Usage): Mention 'kubed-menu-bar-mode'.
Eshel Yaron [Tue, 30 Jul 2024 11:54:50 +0000 (13:54 +0200)]
; * kubed.texi (Usage): Mention 'kubed-menu-bar-mode'.

3 months ago; * kubed.el (kubed-define-resource): Fix typos
Eshel Yaron [Tue, 30 Jul 2024 11:54:34 +0000 (13:54 +0200)]
; * kubed.el (kubed-define-resource): Fix typos

3 months agoAdd global menu bar menu
Eshel Yaron [Tue, 30 Jul 2024 08:47:04 +0000 (10:47 +0200)]
Add global menu bar menu

* kubed.el (kubed-menu-map): New map with global Kubed menu.
(kubed-menu-bar-mode): New minor mode, adds 'kubed-menu-bar'
to global menu bar.
(kubed-define-resource): Also generate a sub-menu for each
resource type.
(pod, namespace): Adjust.

3 months ago; README.md: Adjust figure.
Eshel Yaron [Mon, 29 Jul 2024 15:30:37 +0000 (17:30 +0200)]
; README.md: Adjust figure.

3 months ago; README.md: Add figure showing help for resource fields
Eshel Yaron [Mon, 29 Jul 2024 15:21:31 +0000 (17:21 +0200)]
; README.md: Add figure showing help for resource fields

3 months agoNew command 'kubed-cronjobs-toggle-suspension'
Eshel Yaron [Mon, 29 Jul 2024 14:57:13 +0000 (16:57 +0200)]
New command 'kubed-cronjobs-toggle-suspension'

* kubed.el (kubed-cronjob-suspended-p): New function.
(kubed-cronjobs-toggle-suspension): New command.

3 months agoNew commands for patching resources
Eshel Yaron [Mon, 29 Jul 2024 14:50:59 +0000 (16:50 +0200)]
New commands for patching resources

* kubed-transient.el (kubed-transient-patch): New command.
(kubed-transient): Bind it.
(kubed-transient-apply): Fix capitalization.
* kubed.el (kubed-patch-history): New variable.
(kubed-read-patch): New function.
(kubed-patch): New command.
(kubed-prefix-map): Bind it.
(kubed-define-resource): Add 'kubed-RESOURCEs-patch'
commands that patch the resource at point/mouse in resource
list buffers.

3 months agoAdd argument SILENT to 'kubed-update-RESOURCEs' commands
Eshel Yaron [Mon, 29 Jul 2024 14:45:08 +0000 (16:45 +0200)]
Add argument SILENT to 'kubed-update-RESOURCEs' commands

* kubed.el (kubed-define-resource): Add optional argument
SILENT to generated 'kubed-update-RESOURCEs' commands.  Use
it when update is triggered by user initiated operation.

3 months agoAdd general resource-reading functions
Eshel Yaron [Mon, 29 Jul 2024 14:40:43 +0000 (16:40 +0200)]
Add general resource-reading functions

* kubed.el (kubed-api-resources, kubed-resource-names)
(kubed-read-resource-name, kubed-read-resource-type):
New functions.
(kubed-define-resource): Use new 'kubed-resource-names' to
read resource name in different namespace.
(kubed-read-resource-field): Use new 'kubed-api-resources'.

3 months ago; (kubed-read-resource-field): Pass DEFAULT 'completing-read'.
Eshel Yaron [Mon, 29 Jul 2024 14:36:25 +0000 (16:36 +0200)]
; (kubed-read-resource-field): Pass DEFAULT 'completing-read'.

3 months ago; Teach Imenu about 'kubed-define-resource'
Eshel Yaron [Mon, 29 Jul 2024 14:35:47 +0000 (16:35 +0200)]
; Teach Imenu about 'kubed-define-resource'

3 months agoExtend resource name reading functions with namespace arg
Eshel Yaron [Mon, 29 Jul 2024 13:03:16 +0000 (15:03 +0200)]
Extend resource name reading functions with namespace arg

* kubed.el (kubed-define-resource): Add optional namespace
argument to 'kubed-read-RESOURCE' functions.
(kubed-attach, kubed-exec): Use it when reading name of pod
in another namespace.

3 months ago; Fix 'kubed-kubectl-command' error when 'transient' is not loaded
Eshel Yaron [Mon, 29 Jul 2024 10:33:54 +0000 (12:33 +0200)]
; Fix 'kubed-kubectl-command' error when 'transient' is not loaded

3 months ago; README.md: Add figure showing pods context menu.
Eshel Yaron [Mon, 29 Jul 2024 07:42:22 +0000 (09:42 +0200)]
; README.md: Add figure showing pods context menu.

3 months agoAdd context menus to resource list buffers
Eshel Yaron [Mon, 29 Jul 2024 06:34:30 +0000 (08:34 +0200)]
Add context menus to resource list buffers

* kubed.el (kubed-define-resource): Also generate
'kubed-RESOURCE-context-menu' function for each RESOURCE,
and add it to 'context-menu-functions' in list buffers.

3 months ago; Don't generate extra nils for non-namespaced resources
Eshel Yaron [Mon, 29 Jul 2024 06:17:14 +0000 (08:17 +0200)]
; Don't generate extra nils for non-namespaced resources

* kubed.el (kubed-define-resource): Improve code generation
for non-namespaced resources.

3 months agoImprove compatibility with Emacs 29
Eshel Yaron [Sun, 28 Jul 2024 19:56:19 +0000 (21:56 +0200)]
Improve compatibility with Emacs 29

* kubed.el (tramp-kubernetes-namespace): Remove declaration.
(kubed--static-if): New macro.  Compatibility definition of
'static-if' from Emacs 30.
(kubed-pods-dired, kubed-pods-shell): Do not rely on
explicit Kubernetes namespace in remote file name syntax in
Emacs versions earlier than 31.
(kubed-define-resource): Use 'emacsclient-program-name' only
in Emacs 30 or later.

3 months ago* kubed.el (deployment): Add useful resource properties
Eshel Yaron [Sun, 28 Jul 2024 19:49:58 +0000 (21:49 +0200)]
* kubed.el (deployment): Add useful resource properties

3 months ago* kubed.el (service): Add useful resource properties
Eshel Yaron [Sun, 28 Jul 2024 19:49:15 +0000 (21:49 +0200)]
* kubed.el (service): Add useful resource properties

3 months ago; * kubed.el: Silence warning about 'cobra-read-command-line'.
Eshel Yaron [Sun, 28 Jul 2024 13:51:44 +0000 (15:51 +0200)]
; * kubed.el: Silence warning about 'cobra-read-command-line'.

3 months ago; Update .gitignore
Eshel Yaron [Sun, 28 Jul 2024 13:43:13 +0000 (15:43 +0200)]
; Update .gitignore

3 months ago; * kubed.texi (Usage): Populate with a few words.
Eshel Yaron [Sun, 28 Jul 2024 13:38:57 +0000 (15:38 +0200)]
; * kubed.texi (Usage): Populate with a few words.

3 months ago; * kubed.texi (Getting Started): Fix itemization
Eshel Yaron [Sun, 28 Jul 2024 11:07:23 +0000 (13:07 +0200)]
; * kubed.texi (Getting Started): Fix itemization

3 months ago; * README.md (Getting Started): Fix typo
Eshel Yaron [Sun, 28 Jul 2024 10:46:29 +0000 (12:46 +0200)]
; * README.md (Getting Started): Fix typo

3 months agoInitial commit
Eshel Yaron [Sun, 28 Jul 2024 10:16:03 +0000 (12:16 +0200)]
Initial commit