From 11387f4a3a67e715ea4de1a5f8fda6078bdf577a Mon Sep 17 00:00:00 2001 From: Arpit Gupta Date: Tue, 17 Sep 2024 16:44:40 -0500 Subject: [PATCH] feat(kubectl) add aliases for certificate --- plugins/kubectl/README.md | 5 +++++ plugins/kubectl/kubectl.plugin.zsh | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md index 28a502d11..2c350e805 100644 --- a/plugins/kubectl/README.md +++ b/plugins/kubectl/README.md @@ -129,6 +129,11 @@ plugins=(... kubectl) | kej | `kubectl edit job` | Edit a Job in details | | kdj | `kubectl describe job` | Describe the Job | | kdelj | `kubectl delete job` | Delete the Job | +| | | **Certificate management** | +| kgcert | `kubectl get certificate` | List Certificate in the namespace | +| kgcerta | `kubectl get certificate --all-namespaces` | List Certificates in all namespaces | +| kdcert | `kubectl describe certificate` | Describe the Certificate | +| kdelcert | `kubectl delete certificate` | Delete the Certificate | ## Wrappers diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index 33699bdf9..195c15027 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -178,6 +178,12 @@ alias kej='kubectl edit job' alias kdj='kubectl describe job' alias kdelj='kubectl delete job' +# Certificate management. +alias kgcert='kubectl get certificate' +alias kgcerta='kubectl get certificate --all-namespaces' +alias kdcert='kubectl describe certificate' +alias kdelcert='kubectl delete certificate' + # Utility print functions (json / yaml) function _build_kubectl_out_alias { setopt localoptions norcexpandparam