Created
March 22, 2023 18:16
-
-
Save stand-sure/a117f08f1706366b79da17f9efa58a2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# remove kubernetes CRDs matching a certain string | |
# | |
for crd in `k get crds -oname | grep PUT_FRAGMENT_HERE | awk -F / '{print $2}'`; do kubectl delete crd $crd; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment