[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kubed 377bcbcbb9 29/70: New command 'kubed-restart-depl
From: |
ELPA Syncer |
Subject: |
[elpa] externals/kubed 377bcbcbb9 29/70: New command 'kubed-restart-deployment' |
Date: |
Tue, 6 Aug 2024 06:58:28 -0400 (EDT) |
branch: externals/kubed
commit 377bcbcbb9368227ca02c15ce76f414ae053834e
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
New command 'kubed-restart-deployment'
* kubed.el (kubed-restart-deployment)
(kubed-deployments-restart): New commands.
---
kubed.el | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/kubed.el b/kubed.el
index 8df65327bc..448bc93ae1 100644
--- a/kubed.el
+++ b/kubed.el
@@ -1156,6 +1156,20 @@ defaulting to the current namespace."
(message "Created Kubernetes job `%s'." name)
(kubed-update-jobs t)))
+;;;###autoload
+(defun kubed-restart-deployment (dep &optional namespace)
+ "Restart Kubernetes deployment DEP in namespace NAMESPACE.
+If NAMESPACE is nil or omitted, it defaults to the current namespace."
+ (interactive
+ (list (kubed-read-deployment "Restart deployment")))
+ (unless (zerop
+ (apply #'call-process
+ kubed-kubectl-program nil nil nil
+ "rollout" "restart" "deployment" dep
+ (when namespace (list "-n" namespace))))
+ (user-error "Failed to restart Kubernetes deployment `%s'" dep))
+ (message "Restarted Kubernetes deployment `%s'." dep))
+
;;;###autoload (autoload 'kubed-display-deployment "kubed" nil t)
;;;###autoload (autoload 'kubed-edit-deployment "kubed" nil t)
;;;###autoload (autoload 'kubed-delete-deployments "kubed" nil t)
@@ -1222,7 +1236,10 @@ optional command to run in the images."
(when command (cons "--" command)))))
(user-error "Failed to create Kubernetes deployment `%s'" name))
(message "Created Kubernetes deployment `%s'." name)
- (kubed-update-deployments t)))
+ (kubed-update-deployments t))
+ (set "R" "Restart"
+ (kubed-restart-deployment deployment k8sns)
+ (kubed-update-deployments t)))
;;;###autoload (autoload 'kubed-display-replicaset "kubed" nil t)
;;;###autoload (autoload 'kubed-edit-replicaset "kubed" nil t)
- [elpa] externals/kubed 03c0121c64 18/70: Add argument SILENT to 'kubed-update-RESOURCEs' commands, (continued)
- [elpa] externals/kubed 03c0121c64 18/70: Add argument SILENT to 'kubed-update-RESOURCEs' commands, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed e2699427a9 20/70: New command 'kubed-cronjobs-toggle-suspension', ELPA Syncer, 2024/08/06
- [elpa] externals/kubed adbbefb6c2 21/70: ; README.md: Add figure showing help for resource fields, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed e948eb9335 04/70: ; * kubed.texi (Usage): Populate with a few words., ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 38a8f984fb 15/70: ; Teach Imenu about 'kubed-define-resource', ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 2c90213b8e 16/70: ; (kubed-read-resource-field): Pass DEFAULT 'completing-read'., ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 88937ea900 17/70: Add general resource-reading functions, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 3cc3d54e75 19/70: New commands for patching resources, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed fd653d0458 22/70: ; README.md: Adjust figure., ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 932b0b2e88 24/70: ; * kubed.el (kubed-define-resource): Fix typos, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 377bcbcbb9 29/70: New command 'kubed-restart-deployment',
ELPA Syncer <=
- [elpa] externals/kubed 0c8e314d6f 31/70: ; Fix 'restart' command name in deployments list buffer, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 9dcc880950 40/70: ; * kubed.el (kubed-list-read-filter): Also complete operators., ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 7bc92fb116 43/70: Document resource lists and their filters, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 96dc9b821c 46/70: ; * kubed.texi (Browsing Resources): Tweak wording., ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 999ca10c35 50/70: (cobra-read-command-line): Fix handling of cons INITIAL arg, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed fe844378f0 53/70: ; Add 'kubed-list-copy-as-kill' to context menus, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 0e2c7c7dd9 54/70: Support bookmarking Kubernetes resource buffers, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed e73a4ee0a4 55/70: Always display message when done updating resources, ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 7a14c155d5 68/70: (Browse Resources): Update common commands table., ELPA Syncer, 2024/08/06
- [elpa] externals/kubed 485eae8409 23/70: Add global menu bar menu, ELPA Syncer, 2024/08/06