From ede3619cd0de4790c10c8c46321b54e2924ad3dc Mon Sep 17 00:00:00 2001 From: Christoph Ebeling Date: Wed, 6 Jan 2021 13:00:20 +0100 Subject: [PATCH] Add alias for kubectls dry-run flag --- plugins/kubectl/kubectl.plugin.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index d509d8795..ba3c60de3 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -35,6 +35,10 @@ alias kcgc='kubectl config get-contexts' alias kdel='kubectl delete' alias kdelf='kubectl delete -f' +# Dry runs +alias kdr='kubectl --dry-run=client' +alias kdrs='kubectl --dry-run=server' + # Pod management. alias kgp='kubectl get pods' alias kgpa='kubectl get pods --all-namespaces'