Skip to content

Instantly share code, notes, and snippets.

@stand-sure
Created March 22, 2023 18:16
Show Gist options
  • Save stand-sure/a117f08f1706366b79da17f9efa58a2f to your computer and use it in GitHub Desktop.
Save stand-sure/a117f08f1706366b79da17f9efa58a2f to your computer and use it in GitHub Desktop.
#! /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