diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-08-23 11:14:44 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-08-23 11:14:50 +0200 |
commit | f41c9a2e23ba24e78b2a16e87d22dad2f7f61336 (patch) | |
tree | 9a1cf0f5ea5f77a9b6c16d1ec1cb66ab2fcdb31d /.local | |
parent | e3b58dc5c21657bc4ab7736a7bb7178245ee9013 (diff) |
Add rageclean command for kubectl, to get rid of resources immediately
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/kubectl-rageclean-pod | 17 |
1 files changed, 17 insertions, 0 deletions
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 "$@" |