Skip to content

Instantly share code, notes, and snippets.

@red-avtovo
Created August 14, 2020 13:17
Show Gist options
  • Save red-avtovo/bfcfb728955a00bd6dfe7d6aa690ebed to your computer and use it in GitHub Desktop.
Save red-avtovo/bfcfb728955a00bd6dfe7d6aa690ebed to your computer and use it in GitHub Desktop.
Export all CRS from the cluster in order to import it to IDE supporting crds autocompletion
kubectl get crd | sed -n '1!p' | awk '{print $1}' | xargs -I {} sh -c 'echo "Saving {}"; kubectl get crd {} -o yaml > {}.yaml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment