From f41c9a2e23ba24e78b2a16e87d22dad2f7f61336 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 23 Aug 2023 11:14:44 +0200 Subject: Add rageclean command for kubectl, to get rid of resources immediately --- .local/bin/kubectl-rageclean-pod | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .local/bin/kubectl-rageclean-pod (limited to '.local') diff --git a/.local/bin/kubectl-rageclean-pod b/.local/bin/kubectl-rageclean-pod new file mode 100755 index 0000000..bbd3ba7 --- /dev/null +++ b/.local/bin/kubectl-rageclean-pod @@ -0,0 +1,17 @@ +#!/usr/bin/env sh + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. + +main() { + kubectl delete pod --force --grace-period=0 "$@" +} + +main "$@" -- cgit v1.1