Created
June 15, 2021 01:47
-
-
Save navarrothiago/ceea5763c1352bf5d06b0b4c9d048b4d to your computer and use it in GitHub Desktop.
Delete All Spire Entries
This file contains 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
for i in $(kubectl exec -n spire spire-server-0 -- /opt/spire/bin/spire-server entry show | grep "Entry ID" | cut -d':' -f2 | cut -d' ' -f2); do kubectl exec -n spire spire-server-0 -- /opt/spire/bin/spire-server entry delete -entryID $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment